user32: RealChildWindowFromPoint should skip invisible windows.

This commit is contained in:
Dmitry Timoshkov 2012-02-06 19:59:00 +08:00 committed by Alexandre Julliard
parent 8c7f3964b5
commit ea7e9ed2eb
2 changed files with 2 additions and 2 deletions

View file

@ -7038,9 +7038,9 @@ static void test_child_window_from_point(void)
DestroyWindow(parent);
todo_wine
ok(!found_invisible, "found %d invisible windows\n", found_invisible);
ok(found_disabled, "found %d disabled windows\n", found_disabled);
todo_wine
ok(found_groupbox == 4, "found %d groupbox windows\n", found_groupbox);
ok(found_httransparent, "found %d found_httransparent windows\n", found_httransparent);
todo_wine

View file

@ -376,7 +376,7 @@ HWND WINAPI ChildWindowFromPoint( HWND hwndParent, POINT pt )
*/
HWND WINAPI RealChildWindowFromPoint( HWND hwndParent, POINT pt )
{
return ChildWindowFromPointEx( hwndParent, pt, CWP_SKIPTRANSPARENT );
return ChildWindowFromPointEx( hwndParent, pt, CWP_SKIPTRANSPARENT | CWP_SKIPINVISIBLE );
}
/*******************************************************************