Share via


CSpinButtonCtrl::SetRange

voidSetRange(intnLower**,intnUpper);**

void SetRange32( int nLower**, int** nUpper );

Parameters

nLower and nUpper

Upper and lower limits for the control. Neither limit can be greater than UD_MAXVAL or less than UD_MINVAL. In addition, the difference between the two limits cannot exceed UD_MAXVAL.

Remarks

Call this function to set the upper and lower limits (range) for a spin button control.

The member function SetRange32 sets the 32-bit range for the spin button control.

Note   The default range for the spin button has the maximum set to zero (0) and the minimum set to 100. Since the maximum value is less than the minimum value, clicking the up arrow will decrease the position and clicking the down arrow will increase it. Use CSpinButtonCtrl::SetRange to adjust these values.

CSpinButtonCtrl OverviewClass MembersHierarchy Chart

See Also   CSpinButtonCtrl::GetRange, CSpinButtonCtrl::GetPos,