Dmitry Timoshkov : user32: RealChildWindowFromPoint should skip invisible windows.
Module: wine Branch: master Commit: ea7e9ed2eb7eff90599c578c085f35578c6593f7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea7e9ed2eb7eff90599c578c08... Author: Dmitry Timoshkov <dmitry(a)baikal.ru> Date: Mon Feb 6 19:59:00 2012 +0800 user32: RealChildWindowFromPoint should skip invisible windows. --- dlls/user32/tests/win.c | 2 +- dlls/user32/winpos.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index e760b4a..7d753f7 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -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 diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index 57ccb81..42f6b3e 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -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 ); } /*******************************************************************
participants (1)
-
Alexandre Julliard