Important: The information in this document is obsolete and should not be used for new development.
MyIconAction
Theaction
parameter ofForEachIconDo
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
theForEachIconDo
function. When your application callsForEachIconDo
, it typically provides in theyourDataPtr
parameter a value that identifies the action your function should perform.DESCRIPTION
TheForEachIconDo
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
noErr 0 No error SEE ALSO
For a description of theForEachIconDo
function, see page 5-38.