Поделиться через


CWindow::SetHotKey

Associates a hot key with the window by sending a WM_SETHOTKEY message.

int SetHotKey(
   WORD wVirtualKeyCode,
   WORD wModifiers 
) throw();

Параметры

  • wVirtualKeyCode
    [in] The virtual key code of the hot key. For a list of of standard virtual key codes, see Winuser.h.

  • wModifiers
    [in] The modifiers of the hot key. For a list of possible values, see WM_SETHOTKEY in the Windows SDK.

Возвращаемое значение

For a list of possible return values, see WM_SETHOTKEY in the Windows SDK.

Требования

Header: atlwin.h

См. также

Основные понятия

CWindow Class

CWindow Members

CWindow::GetHotKey