Partager via


CWindow::SetHotKey

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

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

Parameters

  • 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.

Return Value

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

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::GetHotKey