Help Center

CDtPicker.GetSystemtimemethod

Gets the currently selected time from a date and time picker (DTP) control and places it in a specified SYSTEMTIME structure.

WindowsmethodCDtPicker.incdocumented

Syntax

FUNCTION GetSystemtime (BYVAL hDtp AS HWND, BYVAL pst AS SYSTEMTIME PTR) AS DWORD
FUNCTION GetSystemtime (BYVAL hDtp AS HWND, BYREF st AS SYSTEMTIME) AS DWORD
FUNCTION GetSystemtime (BYVAL hDtp AS HWND) AS SYSTEMTIME

Parameters

NameDescription
hDtpA handle to the DTP control.
pstA pointer to a SYSTEMTIME structure. If 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

Returns GDT_VALID if the time information was successfully placed in pst. Returns GDT_NONE if the control was set to the DTS_SHOWNONE style and the control check box was not selected. Returns GDT_ERROR if an error occurs.

Description

Gets the currently selected time from a date and time picker (DTP) control and places it in a specified SYSTEMTIME structure.

Reference

  • Include file CDtPicker.inc
  • Defined in AfxNova/CDtPicker.inc:88
  • Documented in Windows/WIndows Controls/CDtPicker Class.md
  • Topic: CDtPicker Class