Commit 87bc2aa6 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

comctl32/tests: Use SetRect() instead of open coding it.

parent bd92393a
......@@ -88,10 +88,7 @@ static void create_animate(DWORD parent_style, DWORD animate_style)
wc.lpfnWndProc = animate_test_wnd_proc;
RegisterClassA(&wc);
rect.left = 0;
rect.top = 0;
rect.right = 200;
rect.bottom = 200;
SetRect(&rect, 0, 0, 200, 200);
ret = AdjustWindowRect(&rect, WS_OVERLAPPEDWINDOW, FALSE);
ok(ret, "got %d\n", ret);
......
......@@ -1895,7 +1895,7 @@ static void test_MCM_SIZERECTTOMIN(void)
ret = SendMessageA(hwnd, MCM_SIZERECTTOMIN, 0, 0);
ok(ret == 0, "got %d\n", ret);
r.left = r.right = r.top = r.bottom = 0;
SetRectEmpty(&r);
ret = SendMessageA(hwnd, MCM_SIZERECTTOMIN, 0, (LPARAM)&r);
if (ret == 0)
{
......
......@@ -124,10 +124,7 @@ static void init(void)
wc.lpfnWndProc = progress_test_wnd_proc;
RegisterClassA(&wc);
rect.left = 0;
rect.top = 0;
rect.right = 400;
rect.bottom = 20;
SetRect(&rect, 0, 0, 400, 20);
ret = AdjustWindowRect(&rect, WS_OVERLAPPEDWINDOW, FALSE);
ok(ret, "got %d\n", ret);
......
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