SetCtlMax
SetCtlMax
Set the maximum value allowed for a control short maxValue ; desired maximum setting for the control
the control to reflect its new range.
theControl is a handle leading to a variable-length ControlRecord structure. It specifies which control to update.
maxValue specifies the desired new maximum setting for the control.
Subsequent calls to SetCtlValue will not allow the control's setting to go above this amount.
Notes: Setting a control's maximum to exactly the same as its minimum will
automatically unhilite the control. If the maximum is less than the
minimum, the result is not defined. See SetCtlMin.