diff --git a/dlls/user/tests/msg.c b/dlls/user/tests/msg.c index 00ceb3ea1ff..c0b1c6cc93e 100644 --- a/dlls/user/tests/msg.c +++ b/dlls/user/tests/msg.c @@ -5471,6 +5471,14 @@ static void test_scrollwindowex(void) while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessage( &msg ); ok_sequence(ScrollWindowPaint1, "ScrollWindowEx", 0); + /* now scroll with ScrollWindow() */ + trace("start scroll with ScrollWindow\n"); + ScrollWindow( hwnd, 5, 5, NULL, NULL); + trace("end scroll\n"); + flush_sequence(); + while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessage( &msg ); + ok_sequence(ScrollWindowPaint1, "ScrollWindow", 0); + ok(DestroyWindow(hchild), "failed to destroy window\n"); ok(DestroyWindow(hwnd), "failed to destroy window\n"); flush_sequence(); diff --git a/windows/scroll.c b/windows/scroll.c index 24fa769fc59..84dc66ce254 100644 --- a/windows/scroll.c +++ b/windows/scroll.c @@ -182,7 +182,7 @@ BOOL WINAPI ScrollWindow( HWND hwnd, INT dx, INT dy, return (ERROR != ScrollWindowEx( hwnd, dx, dy, rect, clipRect, 0, NULL, (rect ? 0 : SW_SCROLLCHILDREN) | - SW_INVALIDATE )); + SW_INVALIDATE | SW_ERASE )); } /*************************************************************************