3 /*************************************************************************
7 *************************************************************************/
9 pascal SInt32
main(SInt16 varCode
, ControlHandle theControl
, ControlDefProcMessage message
, SInt32 param
)
11 long returnValue
= 0L;
12 char state
= HGetState((Handle
)theControl
);
14 if ( message
!= initCntl
)
16 ExtCDEFInfo
* info
= (ExtCDEFInfo
* ) (**theControl
).contrlRfCon
;
19 returnValue
= info
->defProc( info
->procID
, theControl
, message
, param
) ;
24 (**theControl
).contrlRfCon
= NULL
;
26 HSetState((Handle
)theControl
,state
);
28 return(returnValue
); /* tell them what happened */