Commit 503009cf authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 23afe2e9
......@@ -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();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment