Setting a Hot Key

Your application can use the information provided by a hot key (CHotKeyCtrl) control in one of two ways:

  • Set up a global hot key for activating a nonchild window by sending a WM_SETHOTKEY message to the window to be activated.

  • Set up a thread-specific hot key by calling the Windows function RegisterHotKey.

See also

Using CHotKeyCtrl
Controls