mirror of
https://github.com/reactos/reactos.git
synced 2025-08-01 19:22:58 +00:00
[INCLUDE][ATL] Fix WM_SETHOTKEY macro wrappers
WM_SETHOTKEY / WM_GETHOTKEY messages encode the hotkey in a different
way than with the WM_HOTKEY message.
For more details, see:
https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-gethotkey
https://learn.microsoft.com/en-us/windows/win32/inputdev/wm-sethotkey
Addendum to commit 6829350af9
(PR #7947)
This commit is contained in:
parent
3bb27eb416
commit
f20efc6007
3 changed files with 12 additions and 12 deletions
|
@ -1210,7 +1210,7 @@ public:
|
|||
int SetHotKey(WORD wVirtualKeyCode, WORD wModifiers)
|
||||
{
|
||||
ATLASSERT(::IsWindow(m_hWnd));
|
||||
return ::SendMessage(m_hWnd, WM_SETHOTKEY, MAKEWPARAM(wVirtualKeyCode, wModifiers), 0);
|
||||
return (int)::SendMessage(m_hWnd, WM_SETHOTKEY, MAKEWORD(wVirtualKeyCode, wModifiers), 0);
|
||||
}
|
||||
|
||||
HICON SetIcon(HICON hIcon, BOOL bBigIcon = TRUE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue