--- wine/windows/scroll.c 2005-03-25 20:54:05.000000000 +0100 +++ mywine/windows/scroll.c 2005-03-28 13:48:11.000000000 +0200 @@ -182,7 +182,7 @@ BOOL WINAPI ScrollWindow( HWND hwnd, INT return (ERROR != ScrollWindowEx( hwnd, dx, dy, rect, clipRect, 0, NULL, (rect ? 0 : SW_SCROLLCHILDREN) | - SW_INVALIDATE )); + SW_INVALIDATE | SW_ERASE )); } /************************************************************************* --- wine/dlls/user/tests/msg.c 2005-03-25 20:52:38.000000000 +0100 +++ mywine/dlls/user/tests/msg.c 2005-03-28 13:54:47.000000000 +0200 @@ -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();