Important: The information in this document is obsolete and should not be used for new development.
GetControlReference
To determine a control's current reference value, use theGetControlReference
function. TheGetControlReference
function is also available as theGetCRefCon
function.
FUNCTION GetControlReference (theControl: ControlHandle): LongInt;
theControl
- A handle to the control whose current reference value you wish
to determine.DESCRIPTION
TheGetControlReference
function returns as its function result the current reference value for the specified control.When you create a control, you specify an initial reference value, either in the control resource or in the
refCon
parameter of theNewControl function.
The reference value is stored in thecontrlRfCon
field of the control record. You can use this field for any purpose, and you can use theSetControlReference procedure, described next, to change this value.