DateTime_SetSystemtimeDateTime_SetSystemtime*
*Contents  *Index  *Topic Contents
*Previous Topic: DateTime_SetRange
*Next Topic: Date and Time Picker Control Notification Messages

DateTime_SetSystemtime


BOOL DateTime_SetSystemtime(
    HWND hwndDT,
    DWORD flag,
    LPSYSTEMTIME lpSysTime);

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.

hwndDT
Handle to a DTP control.
flag
Value that specifies the action that should be performed. This should be set to one of the following values:
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. When this flag is specified, lpSysTime is ignored. This flag applies only to DTP controls that are set to the DTS_SHOWNONE style.
lpSysTime
Address of a SYSTEMTIME structure that contains the system time information by which to set the DTP control.

Version 4.70


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.