Skip to content
Snippets Groups Projects
Commit b3f8a639 authored by Susan Farley's avatar Susan Farley Committed by Alexandre Julliard
Browse files

Check for WS_DISABLED parent in WindowFromPoint for un-managed windows.

parent 96293d4c
Branches
Tags
No related merge requests found
......@@ -403,17 +403,18 @@ INT16 WINPOS_WindowFromPoint( WND* wndScope, POINT16 pt, WND **ppWnd )
*ppWnd = NULL;
wndPtr = WIN_LockWndPtr(wndScope->child);
if( wndScope->dwStyle & WS_DISABLED )
{
retvalue = HTERROR;
goto end;
}
if( wndScope->flags & WIN_MANAGED )
{
/* In managed mode we have to check wndScope first as it is also
* a window which received the mouse event. */
if( wndScope->dwStyle & WS_DISABLED )
{
retvalue = HTERROR;
goto end;
}
if( pt.x < wndScope->rectClient.left || pt.x >= wndScope->rectClient.right ||
pt.y < wndScope->rectClient.top || pt.y >= wndScope->rectClient.bottom )
goto hittest;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment