MakeIconCache
You can use the MakeIconCache function to get a handle to an empty icon cache, to which you can add icon data using the LoadIconCache function.
FUNCTION MakeIconCache (VAR theHandle: Handle;
makeIcon: IconGetter;
yourDataPtr: UNIV Ptr): OSErr;
theHandle
-
MakeIconCache allocates memory for a new icon cache and returns a handle to the new icon cache in this parameter.
makeIcon
- A pointer to an icon getter function to associate with the icon cache.
yourDataPtr
- A pointer to the data to associate with the icon cache.
DESCRIPTION
MakeIconCache returns a handle to an empty icon cache in the parameter theHandle. The MakeIconCache function associates the icon getter function and the value specified in the parameters makeIcon and yourDataPtr with the new icon cache.
RESULT CODES
| noErr | 0 | No error |
| memFullErr | -108 | Not enough memory in heap zone |