DATETIMEPICKERINFO structure (commctrl.h)

Contains information about a date and time picker (DTP) control.

Syntax

typedef struct tagDATETIMEPICKERINFO {
  DWORD cbSize;
  RECT  rcCheck;
  DWORD stateCheck;
  RECT  rcButton;
  DWORD stateButton;
  HWND  hwndEdit;
  HWND  hwndUD;
  HWND  hwndDropDown;
} DATETIMEPICKERINFO, *LPDATETIMEPICKERINFO;

Members

cbSize

Type: DWORD

Set to sizeof(DATETIMEPICKERINFO). This member must be set before sending a pointer to this structure with the DTM_GETDATETIMEPICKERINFO message, or the DateTime_GetDateTimePickerInfo macro.

rcCheck

Type: RECT

A RECT structure describing location of checkbox. If a checkbox is displayed and checked, an edit control should be available to update the selected date-time value.

stateCheck

Type: DWORD

The state of rcCheck—one of the Object State Constants, such as STATE_SYSTEM_CHECKED or STATE_SYSTEM_INVISIBLE.

rcButton

Type: RECT

A RECT structure describing the location of a drop-down grid or up/down control.

stateButton

Type: DWORD

The state of rcButton— one or a bitwise combination of the Object State Constants, such as STATE_SYSTEM_UNAVAILABLE, STATE_SYSTEM_INVISIBLE, or STATE_SYSTEM_PRESSED. If the up/down control is in use, the state of the button is STATE_SYSTEM_INVISIBLE.

hwndEdit

Type: HWND

A handle to the edit control. For information see, Edit Controls.

hwndUD

Type: HWND

A handle to the up/down control—an alternative to using the drop-down grid (looks like month calendar control). For more information, see Up-Down Controls.

hwndDropDown

Type: HWND

A handle to the drop-down grid.

Requirements

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