Commit 29cc4c91 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

comctl32/tests: Check for the outcome of the SendMessage calls in test_monthcal_size.

parent 3e2ff7e5
......@@ -1503,10 +1503,12 @@ static void test_monthcal_size(void)
/* initialize to a font we can compare against */
SendMessage(hwnd, WM_SETFONT, (WPARAM)hFont1, 0);
res = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r1);
ok(res, "SendMessage(MCM_GETMINREQRECT) failed\n");
/* check that setting a larger font results in an larger rect */
SendMessage(hwnd, WM_SETFONT, (WPARAM)hFont2, 0);
res = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r2);
ok(res, "SendMessage(MCM_GETMINREQRECT) failed\n");
OffsetRect(&r1, -r1.left, -r1.top);
OffsetRect(&r2, -r2.left, -r2.top);
......
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