Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 867 Bytes

setting-a-hot-key.md

File metadata and controls

19 lines (14 loc) · 867 Bytes
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Setting a Hot Key
Setting a Hot Key
11/04/2016
keyboard shortcuts [MFC], hot keys
access keys [MFC], hot keys
CHotKeyCtrl class [MFC], setting hot key
6f3bc141-e346-4dce-9ca7-3e6b2c453f3f

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