Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.48 KB

using-chotkeyctrl.md

File metadata and controls

26 lines (17 loc) · 1.48 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Using CHotKeyCtrl
Using CHotKeyCtrl
11/04/2016
keys, hot and CHotKeyCtrl
CHotKeyCtrl class [MFC], using
hot key controls
9b207117-d848-4224-8888-c3d197bb0c95

Using CHotKeyCtrl

A hot key control, represented by class CHotKeyCtrl, is a window that displays a text representation of the key combination the user types into it, such as CTRL+SHIFT+Q. It also maintains an internal representation of this key in the form of a virtual key code and a set of flags that represent the shift state. The hot key control does not actually set the hot key — doing that is up to your program. (For a list of standard virtual key codes, see Winuser.h.)

Use a hot key control to get a user's input for which hot key to associate with a window or thread. Hot key controls are often used in dialog boxes, such as you might display when asking the user to assign a hot key. It is your program's responsibility to retrieve the values describing the hot key from the hot key control and to call the appropriate functions to associate the hot key with a window or thread.

What do you want to know more about

See also

Controls