MyIconAction
The action parameter of ForEachIconDo must 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
yourDataPtr parameter of
the ForEachIconDo function. When your application calls ForEachIconDo, it typically provides in the yourDataPtr parameter a value that identifies the action your function should perform.
DESCRIPTION
The ForEachIconDo function 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
SEE ALSO
For a description of the ForEachIconDo function, see page 5-38.