Important: The information in this document is obsolete and should not be used for new development.
The Animated Cursor ResourceYou can use an animated cursor resource to define a set of frames for an animated cursor to display in your application. An animated cursor resource is a resource of type
If you pass
InitCursorCtl(described on page 8-20), it automatically loads the
'acur'resource that has an ID of 0 in your application's resource file. If you wish to use multiple
'acur'resources, you must give them resources IDs greater than 128, and you must use the Resource Manager function
GetResourceto obtain handles to them. You must then coerce their handles to type
acurHandle, which you pass to
InitCursorCtl. You use the
RotateCursorprocedure to animate the cursors stored in an
This section describes the structure of this resource after it has been compiled by the Rez resource compiler, available from APDA. However, you typically use a high-level tool such as the ResEdit application to create
'acur'resources. You can then use the DeRez decompiler to convert your
'acur'resources into Rez input when necessary.
The compiled output format for an
'acur'resource is illustrated in Figure 8-10.
Figure 8-10 Format of a compiled animated cursor (
The compiled version of an
'acur'resource contains the following elements: