The SFTDATE_NMKEYDOWN structure is sent with the NM_SFTDATE_KEYDOWN notification before a control handles a key.
typedef struct tagSftDateNMKeyDown {
NMHDR hdr;
UINT vk; // in
UINT modifiers; // in
BOOL fHandled; // out
} SFTDATE_NMKEYDOWN, * LPSFTDATE_NMKEYDOWN;The standard WM_NOTIFY notification header. hwndFrom contains the window handle of the date field control or month calendar control, idFrom its control ID and code is set to NM_SFTDATE_KEYDOWN.
In: the virtual-key code of the key.
In: the modifier keys held down, a combination of SFTDATE_KEY_SHIFT, SFTDATE_KEY_CONTROL and SFTDATE_KEY_ALT.
Out: TRUE if the application handled the key, so the control ignores it. The control sets it to FALSE.
The control sends the WM_NOTIFY message with the SFTDATE_NMKEYDOWN structure for each key pressed while it has the input focus, before it handles the key. For a date field control this includes system keys such as Alt+Down, the keys sent to its open dropdown, and the keys of the edit control used for free-form editing.
Setting fHandled to TRUE suppresses the key, including the character Windows generates for it. See Keyboard Interface for the keys the controls handle.
See Also C/C++ API | Categories | Notifications