ScrollWindow should call ScrollWindowEx with the SW_ERASE flag
set. With conformance test.
This commit is contained in:
parent
7001d6ed34
commit
a4ae750a87
|
@ -5471,6 +5471,14 @@ static void test_scrollwindowex(void)
|
||||||
while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessage( &msg );
|
while (PeekMessage( &msg, 0, 0, 0, PM_REMOVE )) DispatchMessage( &msg );
|
||||||
ok_sequence(ScrollWindowPaint1, "ScrollWindowEx", 0);
|
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(hchild), "failed to destroy window\n");
|
||||||
ok(DestroyWindow(hwnd), "failed to destroy window\n");
|
ok(DestroyWindow(hwnd), "failed to destroy window\n");
|
||||||
flush_sequence();
|
flush_sequence();
|
||||||
|
|
|
@ -182,7 +182,7 @@ BOOL WINAPI ScrollWindow( HWND hwnd, INT dx, INT dy,
|
||||||
return
|
return
|
||||||
(ERROR != ScrollWindowEx( hwnd, dx, dy, rect, clipRect, 0, NULL,
|
(ERROR != ScrollWindowEx( hwnd, dx, dy, rect, clipRect, 0, NULL,
|
||||||
(rect ? 0 : SW_SCROLLCHILDREN) |
|
(rect ? 0 : SW_SCROLLCHILDREN) |
|
||||||
SW_INVALIDATE ));
|
SW_INVALIDATE | SW_ERASE ));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue