mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08: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
@ -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 New Issue
Block a user