comctl32/tests: Fix a test that depends on control size.
This commit is contained in:
parent
c5881eabfa
commit
ce6819d93d
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue