DateTime_SetSystemtime (Windows CE 5.0)
This macro sets a date and time picker (DTP) control to a specified date and time.
BOOL DateTime_SetSystemtime(HWND hwndDT,DWORDflag,LPSYSTEMTIMElpSysTime);
Parameters
- hwndDT
Handle to a DTP control. - flag
Value that specifies the action that should be performed. It is one of the following values.Value Description GDT_VALID Set the DTP control according to the data within the SYSTEMTIME structure pointed to by lpSysTime. GDT_NONE Set the DTP control to "no date" and clear its check box. lpSysTime is ignored when this flag is specified. This flag applies only to DTP controls that are set to the DTS_SHOWNONE style. - lpSysTime
Long pointer to a SYSTEMTIME structure that contains the system time information by which to set the DTP control.
Return Values
Nonzero indicates success. Zero indicates otherwise.
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.
See Also
DTM_SETSYSTEMTIME | SYSTEMTIME
Send Feedback on this topic to the authors