Commit ce6819d9 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/tests: Fix a test that depends on control size.

parent c5881eab
...@@ -1865,10 +1865,17 @@ static void test_daystate(void) ...@@ -1865,10 +1865,17 @@ static void test_daystate(void)
MONTHDAYSTATE state[4]; MONTHDAYSTATE state[4];
DWORD ret, style; DWORD ret, style;
HWND hwnd; HWND hwnd;
RECT r;
/* without MCS_DAYSTATE */ /* without MCS_DAYSTATE */
hwnd = create_monthcal_control(0); hwnd = create_monthcal_control(0);
ret = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r);
expect(TRUE, ret);
/* resize control to display two Calendars */
MoveWindow(hwnd, 0, 0, r.right, (5/2)*r.bottom, FALSE);
ret = SendMessageA(hwnd, MCM_GETMONTHRANGE, GMR_DAYSTATE, 0); ret = SendMessageA(hwnd, MCM_GETMONTHRANGE, GMR_DAYSTATE, 0);
expect(4, ret); expect(4, 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