NM_KEYDOWN notification code

Sent by a control when the control has the keyboard focus and the user presses a key. This notification code is sent in the form of a WM_NOTIFY message.

NM_KEYDOWN

    lpnmk = (LPNMKEY) lParam;

Parameters

lParam

A pointer to an NMKEY structure that contains additional information about the key that caused the notification code.

Return value

Return nonzero to prevent the control from processing the key, or zero otherwise.

Requirements

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