comctl32: Return the number of visible months for MCM_GETMONTHDELTA.
This commit is contained in:
parent
1bf936c900
commit
75fbef2ded
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue