The SFTDATE_NMCANCEL structure is sent with the NM_SFTDATE_DROPDOWNOPENING notification before the dropdown of a date field control opens.
typedef struct tagSftDateNMCancel {
NMHDR hdr;
BOOL fCancel; // out
} SFTDATE_NMCANCEL, * LPSFTDATE_NMCANCEL;The standard WM_NOTIFY notification header. hwndFrom contains the window handle of the date field control, idFrom its control ID and code is set to NM_SFTDATE_DROPDOWNOPENING.
Out: TRUE to keep the dropdown closed. The control sets it to FALSE.
The date field control sends the WM_NOTIFY message with the SFTDATE_NMCANCEL structure when the dropdown is about to open, by the user or OpenDropDown. The application can prepare the dropdown calendar, for example by adding special dates, or cancel it. NM_SFTDATE_DROPDOWNOPENED follows once the dropdown is open.
See Also C/C++ API | Categories | Notifications