Share via


Thread-Specific Hot Keys

Overview

An application sets a thread-specific hot key () by using the Windows RegisterHotKey function. When the user presses a thread-specific hot key, Windows posts a message to the beginning of a particular thread's message queue. The WM_HOTKEY message contains the virtual key code, shift state, and user-defined ID of the specific hot key that was pressed. For more information on this method, see . Note that the shift state flags used in the call to RegisterHotKey are not the same as those returned by the member function; you'll have to translate these flags before calling RegisterHotKey.

See Also   Windows Common Controls and MFC Classes