From: Zhiyi Zhang zzhang@codeweavers.com
--- dlls/user32/tests/msg.c | 3 +-- dlls/win32u/defwnd.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c index 772b4d0797e..80d900baa1c 100644 --- a/dlls/user32/tests/msg.c +++ b/dlls/user32/tests/msg.c @@ -21222,9 +21222,8 @@ static void test_defwinproc_wm_print(void) lr = DefWindowProcA(hwnd, WM_PRINT, (WPARAM)hdc, PRF_CHILDREN | PRF_CLIENT); ok(lr == 1, "Got unexpected lr %Id.\n", lr); color = GetPixel(hdc, 50, 50); - todo_wine ok(color == RGB(0xff, 0, 0), "Got unexpected color %#lx.\n", color); - ok_sequence(wm_print_prf_children, "DefWindowProc WM_PRINT with PRF_CHILDREN | PRF_CLIENT with an invisible parent", TRUE); + ok_sequence(wm_print_prf_children, "DefWindowProc WM_PRINT with PRF_CHILDREN | PRF_CLIENT with an invisible parent", FALSE); flush_sequence();
/* PRF_CHILDREN | PRF_CLIENT with an invisible child window */ diff --git a/dlls/win32u/defwnd.c b/dlls/win32u/defwnd.c index d8bd8e8637b..3cc64e405b2 100644 --- a/dlls/win32u/defwnd.c +++ b/dlls/win32u/defwnd.c @@ -2850,7 +2850,7 @@ LRESULT default_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, { for (child = list; *child; child++) { - if (!is_window_visible( *child )) + if (!(get_window_long( *child, GWL_STYLE ) & WS_VISIBLE)) continue;
dpi = NtUserGetDpiForWindow( *child );