DTM_SETSYSTEMTIME

This message sets the time in a date and time picker (DTP) control.

DTM_SETSYSTEMTIME wParam = (WPARAM) flag;
lParam = (LPARAM) lpSysTime;

Parameters

  • flag
    Specifies the action that should be performed. It is one of the following values:

    Value Description
    GDT_VALID Sets the DTP control according to the data within the structure that lpSysTime points to.
    GDT_NONE Sets 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 used to set the DTP control.

Return Values

Nonzero indicates success. Zero indicates otherwise.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 2.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

DateTime_SetSystemtime, SYSTEMTIME

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.