WinXCalendar_SetSelection


WinXCalendar_SetSelection (hCal, SYSTEMTIME time)

Sets the selected date in a calendar control

Parameter Description
hCal The handle to the calendar control
SYSTEMTIME time The date to set the control to. See the Win32 API docs for more on this structure.

Returns

$$TRUE on success or $$FALSE on fail

Remarks

none

Examples

SYSTEMTIME time

' Select today
GetLocalTime (&time)
WinXCalendar_SetSelection (hCal, time)

Related Links

Calendar Controls
WinXAddCalendar
WinXCalendar_GetSelection