Commit 75fbef2d authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

comctl32: Return the number of visible months for MCM_GETMONTHDELTA.

parent 1bf936c9
......@@ -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);
}
......
......@@ -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 */
......
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