DateTime_GetRange

This macro retrieves the current minimum and maximum allowable system times for a date and time picker (DTP) control.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later
Related message: DTM_GETRANGE

Syntax

DWORD DateTime_GetRange(HWND hwndDT,
LPSYSTEMTIME
lpSysTimeArray);

Parameters

hwndDT

Handle to a DTP control.

lpSysTimeArray

Long pointer to a two-element array of SYSTEMTIME structures.

Return Values

Returns a DWORD value that is a combination of GDTR_MIN or GDTR_MAX. The first element of the SYSTEMTIME array contains the minimum allowable time. The second element of the SYSTEMTIME array contains the maximum allowable time.