Important: The information in this document is obsolete and should not be used for new development.
MyIconAction
Theactionparameter ofForEachIconDomust point to a function that uses this syntax:
FUNCTION MyIconAction (theType: ResType; VAR theIcon: Handle; yourDataPtr: Ptr): OSErr;
theType- The resource type of the icon.
theIcon- A handle to the icon on which to perform the operation.
yourDataPtr- A pointer to data as specified in the
yourDataPtrparameter of
theForEachIconDofunction. When your application callsForEachIconDo, it typically provides in theyourDataPtrparameter a value that identifies the action your function should perform.DESCRIPTION
TheForEachIconDofunction uses your icon action function to perform actions on specified icons in an icon suite. Your icon action function should return a result code indicating whether it sucessfully performed the action on the icon.RESULT CODE
noErr 0 No error SEE ALSO
For a description of theForEachIconDofunction, see page 5-38.