WM_GETHOTKEY message

Sent to determine the hot key associated with a window.


#define WM_GETHOTKEY                    0x0033

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

The return value is the virtual-key code and modifiers for the hot key, or NULL if no hot key is associated with the window. The virtual-key code is in the low byte of the return value and the modifiers are in the high byte. The modifiers can be a combination of the following flags from CommCtrl.h.

Return code/valueDescription
HOTKEYF_ALT
0x04

ALT key

HOTKEYF_CONTROL
0x02

CTRL key

HOTKEYF_EXT
0x08

Extended key

HOTKEYF_SHIFT
0x01

SHIFT key

 

Remarks

These hot keys are unrelated to the hot keys set by the RegisterHotKey function.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
RegisterHotKey
WM_SETHOTKEY
Conceptual
Keyboard Input

 

 

Community Additions

ADD
Show:
© 2014 Microsoft