WinXTimePicker_SetTime


WinXTimePicker_SetTime (hDTP, SYSTEMTIME time, timeValid)

Sets the time/date in a Time/Date Picker

Parameter Description
hDTP The handle to the date/time picker control
SYSTEMTIME time The time to set the control to
timeValid $$TRUE if the time parameter is valid. If this parameter is $$FALSE the control's time will not be set.

Returns

$$TRUE on success or $$FALSE on fail

Remarks

none

Examples

SYSTEMTIME time

' Set the control to today
GetLocalTime (&time)
WinXTimePicker_SetTime (hDTP, time)

Related Links

Time/Date Controls
WinXAddTimePicker
WinXTimePicker_GetTime