DateTime_GetSystemtime macro (commctrl.h)

Gets the currently selected time from a date and time picker (DTP) control and places it in a specified SYSTEMTIME structure. You can use this macro, or send the DTM_GETSYSTEMTIME message explicitly.

Syntax

void DateTime_GetSystemtime(
   hdp,
   pst
);

Parameters

hdp

Type: HWND

A handle to a DTP control.

pst

Type: LPSYSTEMTIME

A pointer to a SYSTEMTIME structure. If DTM_GETSYSTEMTIME returns GDT_VALID, this structure will contain the currently selected time. Otherwise, it will not contain valid information. This parameter must be a valid pointer; it cannot be NULL.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h