MonthCal_SetMonthDelta

This macro sets the “scroll rate” for a month calendar control. The scroll rate is the number of months that a month calendar control moves its display when the user clicks a scroll button.

At a Glance

Header file: Commctrl.h
Windows CE versions: 2.0 and later
Related message: MCM_SETMONTHDELTA

Syntax

INT MonthCal_SetMonthDelta(HWND hwndMC, INT iDelta);

Parameters

hwndMC

Handle to a month calendar control.

iDelta

Value representing the number of months to be set as the control’s scroll rate. If this value is zero, the month delta is reset to the default, which is the number of months displayed in the control.

Return Values

Returns an INT value that represents the previous scroll rate. If the scroll rate has not been previously set, the return value is zero.