Important: The information in this document is obsolete and should not be used for new development.
GetControlMaximum
To determine a control's maximum setting, use theGetControlMaximumfunction. TheGetControlMaximumfunction is also available as theGetCtlMaxfunction.
FUNCTION GetControlMaximum (theControl: ControlHandle): Integer;
theControl- A handle to the control whose maximum value you wish to determine.
DESCRIPTION
TheGetControlMaximumfunction returns as its function result the specified control's maximum setting, which is stored in thecontrlMaxfield of the control record.When you create a control, you specify an initial maximum setting either in the control resource or in the
maxparameter of theNewControlfunction. You can change the maximum setting by using theSetControlMaximumprocedure.SEE ALSO
Listing 5-16 on page 5-38 and Listing 5-20 on page 5-56 illustrate the use ofGetControlMaximumfor determining the maximum scrolling distance of a scroll bar.