Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This macro sets a date and time picker (DTP) control to a specified date and time.
Syntax
BOOL DateTime_SetSystemtime( HWND hwndDT, DWORD flag, LPSYSTEMTIME lpSysTime ); |
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 SYSTEMTIMEstructure pointed to by lpSysTime.
GDT_NONE
Set the DTP control to "no date" and clear its check box. lpSysTimeis 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 SYSTEMTIMEstructure that contains the system time information by which to set the DTP control.
Return Value
Nonzero indicates success. Zero indicates otherwise.
Requirements
Header | commctrl.h |
Windows Embedded CE | Windows CE 2.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |