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