comctl32: Return the number of visible months for MCM_GETMONTHDELTA.

This commit is contained in:
Andrew Eikum 2013-08-29 14:57:48 -05:00 committed by Alexandre Julliard
parent 1bf936c900
commit 75fbef2ded
2 changed files with 5 additions and 3 deletions

View File

@ -123,7 +123,6 @@ typedef struct
int width_increment;
INT delta; /* scroll rate; # of months that the */
/* control moves when user clicks a scroll button */
int visible; /* # of months visible */
int firstDay; /* Start month calendar with firstDay's day,
stored in SYSTEMTIME format */
BOOL firstDaySet; /* first week day differs from locale defined */
@ -1302,8 +1301,8 @@ MONTHCAL_GetMonthDelta(const MONTHCAL_INFO *infoPtr)
if(infoPtr->delta)
return infoPtr->delta;
else
return infoPtr->visible;
return MONTHCAL_GetMonthRange(infoPtr, GMR_VISIBLE, NULL);
}

View File

@ -1325,6 +1325,9 @@ static void test_scroll(void)
hwnd = create_monthcal_control(0);
res = SendMessage(hwnd, MCM_GETMONTHDELTA, 0, 0);
expect(2, res);
flush_sequences(sequences, NUM_MSG_SEQUENCES);
/* Setter and Getters for scroll rate */