Share via


CHotKeyCtrl::GetHotKey

DWORDGetHotKey() const;

voidGetHotKey(WORD&wVirtualKeyCode,WORD&wModifiers) const;

Return Value

In the first usage above, a DWORD containing the virtual-key code and modifier flags. The low-order word is the virtual-key code, and the high-order word is the modifier flags. The HIWORD and LOWORD of this 32-bit value can be used as the parameters in the SetHotKey member function.

Parameters

wVirtualKeyCode

Virtual-key code of the hot key.

wModifiers

Modifier flags indicating the keys that, when used in combination with wVirtualKeyCode, define a hot key combination.

Remarks

Call this function to retrieve the virtual-key code and modifier flags of a hot key from a hot key control.

The modifier flags can be a combination of the following values:

  • HOTKEYF_ALT   ALT key

  • HOTKEYF_CONTROL   CTRL key

  • HOTKEYF_EXT   Extended key

  • HOTKEYF_SHIFT   SHIFT key

CHotKeyCtrl OverviewClass MembersHierarchy Chart

See Also   CHotKeyCtrl::SetHotKey