Check for WS_DISABLED parent in WindowFromPoint for un-managed windows.
This commit is contained in:
parent
96293d4c29
commit
b3f8a6390f
|
@ -404,16 +404,17 @@ INT16 WINPOS_WindowFromPoint( WND* wndScope, POINT16 pt, WND **ppWnd )
|
|||
*ppWnd = NULL;
|
||||
wndPtr = WIN_LockWndPtr(wndScope->child);
|
||||
|
||||
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( 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( pt.x < wndScope->rectClient.left || pt.x >= wndScope->rectClient.right ||
|
||||
pt.y < wndScope->rectClient.top || pt.y >= wndScope->rectClient.bottom )
|
||||
goto hittest;
|
||||
|
|
Loading…
Reference in New Issue