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 theGetControlMaximum
function. TheGetControlMaximum
function is also available as theGetCtlMax
function.
FUNCTION GetControlMaximum (theControl: ControlHandle): Integer;
theControl
- A handle to the control whose maximum value you wish to determine.
DESCRIPTION
TheGetControlMaximum
function returns as its function result the specified control's maximum setting, which is stored in thecontrlMax
field of the control record.When you create a control, you specify an initial maximum setting either in the control resource or in the
max
parameter of theNewControl
function. You can change the maximum setting by using theSetControlMaximum
procedure.SEE ALSO
Listing 5-16 on page 5-38 and Listing 5-20 on page 5-56 illustrate the use ofGetControlMaximum
for determining the maximum scrolling distance of a scroll bar.