gdi32/tests: Make the test clipping window topmost to see if it helps.

This commit is contained in:
Alexandre Julliard 2010-10-15 12:19:24 +02:00
parent 5d69141014
commit 295682f35c
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ static void test_GetRandomRgn(void)
ok( hwnd != 0, "CreateWindow failed\n" );
SetRect(&window_rc, 400, 300, 500, 400);
MoveWindow(hwnd, window_rc.left, window_rc.top, window_rc.right - window_rc.left, window_rc.bottom - window_rc.top, FALSE);
SetWindowPos(hwnd, HWND_TOPMOST, window_rc.left, window_rc.top,
window_rc.right - window_rc.left, window_rc.bottom - window_rc.top, 0 );
hdc = GetDC(hwnd);
ret = GetRandomRgn(hdc, hrgn, 1);