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

This commit is contained in:
Nikolay Sivov 2011-10-03 09:31:18 -05:00 committed by Alexandre Julliard
parent c5881eabfa
commit ce6819d93d

View file

@ -1865,10 +1865,17 @@ static void test_daystate(void)
MONTHDAYSTATE state[4];
DWORD ret, style;
HWND hwnd;
RECT r;
/* without MCS_DAYSTATE */
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);
expect(4, ret);