windows_programming_notes.nbk: Home | Index | Next Page: WM_GETICON | Previous Page: WM_GETFONT
An application sends a WM_GETHOTKEY message to determine the hot key associated with a window.
To send this message, call the SendMessage function with the following parameters.
    SendMessage( 
      (HWND) hWnd,              // handle to destination window 
      WM_GETHOTKEY,             // message to send
      (WPARAM) wParam,          // not used; must be zero
      (LPARAM) lParam          // not used; must be zero
    );
This message has no parameters.
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.
Value Meaning HOTKEYF_ALT ALT key HOTKEYF_CONTROL CTRL key HOTKEYF_EXT Extended key HOTKEYF_SHIFT SHIFT key
These hot keys are unrelated to the hot keys set by the RegisterHotKey function.
Windows NT/2000 or later: Requires Windows NT 3.1 or later. Windows 95/98/Me: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: WM_GETICON | Previous Page: WM_GETFONT
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time