DTN_DROPDOWN notification code

Sent by a date and time picker (DTP) control when the user activates the drop-down month calendar. This notification code is sent in the form of a WM_NOTIFY message.

DTN_DROPDOWN

    lpNmhdr = (LPNMHDR)lParam;

Parameters

lParam

A pointer to an NMHDR structure that contains information about the notification.

Return value

The return value for this notification is not used.

Remarks

One task that your notification handler may need to perform is to customize the dropdown month-calendar control. For instance, if you do not want "Go To Today," you need to set the control's MCS_NOTODAY style. To retrieve a handle to the month-calendar control, send the DTP control a DTM_GETMONTHCAL message. You can then use this handle and SetWindowLong to set the desired month-calendar style.

DTP controls do not maintain a static child month calendar control. The DTP control creates a new month calendar control before sending this notification code. Additionally, the DTP control destroys the child control when it is not active (visible). So your application must not rely on a static window handle to the control's child month calendar.

Requirements

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

See also

Reference

DTN_CLOSEUP

DTM_GETMONTHCAL