user32: Add a test for CS_OWNDC windows that are created invisible.

This commit is contained in:
Huw Davies 2008-02-21 13:39:42 +00:00 committed by Alexandre Julliard
parent 23afe2e94c
commit 503009cf37
1 changed files with 18 additions and 0 deletions

View File

@ -375,6 +375,23 @@ static void test_begin_paint(void)
"clip box should have been reset %d,%d-%d,%d\n", rect.left, rect.top, rect.right, rect.bottom );
}
static void test_invisible_create(void)
{
HWND hwnd_owndc = CreateWindowA("owndc_class", NULL, WS_OVERLAPPED,
0, 200, 100, 100,
0, 0, GetModuleHandleA(0), NULL );
HDC dc1, dc2;
dc1 = GetDC(hwnd_owndc);
dc2 = GetDC(hwnd_owndc);
todo_wine
ok(dc1 == dc2, "expected owndc dcs to match\n");
ReleaseDC(hwnd_owndc, dc2);
ReleaseDC(hwnd_owndc, dc1);
DestroyWindow(hwnd_owndc);
}
START_TEST(dce)
{
@ -414,4 +431,5 @@ START_TEST(dce)
test_parameters();
test_dc_visrgn();
test_begin_paint();
test_invisible_create();
}