mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[NTUSER][USER32] Set WM_CONTEXTMENU's wParam to the child window's handle
Cherry-picked from 3af8415ca9
CORE-18801
This commit is contained in:
parent
5b3b4151e2
commit
0bab3a1048
2 changed files with 3 additions and 3 deletions
|
@ -738,7 +738,7 @@ IntDefWindowProc(
|
|||
{
|
||||
if (Wnd->style & WS_CHILD)
|
||||
{
|
||||
co_IntSendMessage(UserHMGetHandle(IntGetParent(Wnd)), Msg, wParam, lParam);
|
||||
co_IntSendMessage(UserHMGetHandle(IntGetParent(Wnd)), Msg, (WPARAM)UserHMGetHandle(Wnd), lParam);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -390,11 +390,11 @@ User32DefWindowProc(HWND hWnd,
|
|||
{
|
||||
if (bUnicode)
|
||||
{
|
||||
SendMessageW(GetParent(hWnd), Msg, wParam, lParam);
|
||||
SendMessageW(GetParent(hWnd), Msg, (WPARAM)hWnd, lParam);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessageA(GetParent(hWnd), WM_CONTEXTMENU, wParam, lParam);
|
||||
SendMessageA(GetParent(hWnd), Msg, (WPARAM)hWnd, lParam);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue