DateTime_SetSystemtime macro (commctrl.h)
Sets a date and time picker (DTP) control to a given date and time. You can use this macro or send the DTM_SETSYSTEMTIME message explicitly.
void DateTime_SetSystemtime( hdp, gd, pst );
A handle to a DTP control.
A value that specifies the action that should be performed. This should be set to one of the following values.
||Set the DTP control according to the data within the SYSTEMTIME structure pointed to by lpSysTime.|
||Set the DTP control to "no date" and clear its check box. When this flag is specified, lpSysTime is ignored. This flag applies only to DTP controls that are set to the DTS_SHOWNONE style.|
A pointer to a SYSTEMTIME structure that contains the system time information by which to set the DTP control.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|