Defines the number of months the navigation buttons scroll.
C
int WINAPI SftDate_GetScrollMonths(HWND hwndCtl); BOOL WINAPI SftDate_SetScrollMonths(HWND hwndCtl, int months);
C++
int CSftDate::GetScrollMonths() const; int CSftCalendar::GetScrollMonths() const; BOOL CSftDate::SetScrollMonths(int months); BOOL CSftCalendar::SetScrollMonths(int months);
hwndCtl
The window handle of the month calendar control (SftCalendar), or of the date field control (SftDate) whose dropdown calendar is affected.
months
The number of months, or 0 to scroll by the number of months shown.
GetScrollMonths returns the number of months, or 0.
SetScrollMonths returns TRUE if the value is valid (0 or greater), otherwise FALSE.
The GetScrollMonths and SetScrollMonths functions define and retrieve the number of months the previous and next buttons and the Page Up and Page Down keys scroll in the month view. The default is 0, which scrolls by the number of months shown (SetMonthsAcross, SetMonthsDown). The mouse wheel scrolls by this number of months for each notch, or by one month if it is 0.
In the year, decade and century views, the buttons always scroll by the number of blocks shown.
The setting applies to a month calendar control and to the dropdown calendar of a date field control.
See Also C/C++ API | Categories | Notifications