mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 02:50:55 +00:00
- Correct fix for handling WM_MOUSEACTIVATE and Bug #3111. If no parent, use MsgWindow->hSelf as wParam.
svn path=/trunk/; revision=36965
This commit is contained in:
parent
10c26d1da1
commit
f4ab2b4a4b
|
@ -598,16 +598,10 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB
|
||||||
|
|
||||||
Parent = IntGetParent(MsgWindow);//fixme: deref retval?
|
Parent = IntGetParent(MsgWindow);//fixme: deref retval?
|
||||||
|
|
||||||
/* If there is no parent, do not send the WM_MOUSEACTIVATE message. Fixes Bug #3111 */
|
/* If no parent window, pass MsgWindows HWND as wParam. Fixes bug #3111 */
|
||||||
if (!Parent)
|
|
||||||
{
|
|
||||||
co_IntMouseActivateWindow(MsgWindow);
|
|
||||||
return FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
Result = co_IntSendMessage(MsgWindow->hSelf,
|
Result = co_IntSendMessage(MsgWindow->hSelf,
|
||||||
WM_MOUSEACTIVATE,
|
WM_MOUSEACTIVATE,
|
||||||
(WPARAM) (Parent ? Parent->hSelf : NULL),
|
(WPARAM) (Parent ? Parent->hSelf : MsgWindow->hSelf),
|
||||||
(LPARAM)MAKELONG(*HitTest, Msg->message)
|
(LPARAM)MAKELONG(*HitTest, Msg->message)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue