mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
user32/tests: Add some tests to show that WS_CLIPCHILDREN doesn't exclude children from update region.
This commit is contained in:
parent
eddfefa54f
commit
55a78fd19b
@ -6646,6 +6646,20 @@ static void test_paint_messages(void)
|
||||
RedrawWindow( hparent, NULL, 0, RDW_ERASENOW );
|
||||
ok_sequence( WmEmptySeq, "WmChildPaintNc3", FALSE );
|
||||
|
||||
/* WS_CLIPCHILDREN doesn't exclude children from update region */
|
||||
flush_sequence();
|
||||
RedrawWindow( hparent, NULL, 0, RDW_INVALIDATE | RDW_ERASE | RDW_NOCHILDREN );
|
||||
GetClientRect( hparent, &rect );
|
||||
SetRectRgn( hrgn, rect.left, rect.top, rect.right, rect.bottom );
|
||||
check_update_rgn( hparent, hrgn );
|
||||
flush_events();
|
||||
|
||||
RedrawWindow( hparent, NULL, 0, RDW_INVALIDATE | RDW_ERASE | RDW_ALLCHILDREN );
|
||||
GetClientRect( hparent, &rect );
|
||||
SetRectRgn( hrgn, rect.left, rect.top, rect.right, rect.bottom );
|
||||
check_update_rgn( hparent, hrgn );
|
||||
flush_events();
|
||||
|
||||
/* test RDW_INTERNALPAINT behavior */
|
||||
|
||||
flush_sequence();
|
||||
|
Loading…
Reference in New Issue
Block a user