Carbon


GetCursor

Header: Quickdraw.h Carbon status: Supported

Loads a cursor resource into memory.

CursHandle GetCursor (
    SInt16 cursorID
);
Parameter descriptions
cursorID

The resource ID for the cursor you want to display. You can supply one of the “Cursor ID Constants” to get a handle to one of the standard cursors.

function result

A handle to a Cursor structure for the cursor with the resource ID that you specify in the cursorID parameter. If the resource cannot be read into memory, GetCursor returns NULL.

DISCUSSION

To get a handle to a color cursor, use the GetCCursor function.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)