Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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.