DateTime_GetMonthCal macro

Gets the handle to a date and time picker's (DTP) child month calendar control. You can use this macro or send the DTM_GETMONTHCAL message explicitly.

Syntax


HWND DateTime_GetMonthCal(
  HWND hwndDP
);

Parameters

hwndDP

Type: HWND

A handle to a DTP control.

Return value

Returns the handle to a DTP control's child month calendar control.

Remarks

DTP controls create a child month calendar control when the user clicks the drop-down arrow (DTN_DROPDOWN notification). When the month calendar is no longer needed, it is destroyed (a DTN_CLOSEUP notification is sent on destruction). So your application must not rely on a static handle to the DTP's child month calendar.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

See also

Reference
DTN_CLOSEUP
DTN_DROPDOWN

 

 

Community Additions

ADD
Show:
© 2014 Microsoft