Important: The information in this document is obsolete and should not be used for new development.
GetCCursor
You use theGetCCursorfunction to load a color cursor resource into memory.
FUNCTION GetCCursor (crsrID: Integer): CCrsrHandle;
crsrID- The resource ID of the cursor that you want to display.
DESCRIPTION
TheGetCCursorfunction creates a newCCrsrrecord and initializes it using the information in the'crsr'resource with the specified ID. TheGetCCursorfunction returns a handle to the newCCrsrrecord. You can then display this cursor on the screen by callingSetCCursor. If a resource with the specified ID isn't found, then this function returns aNILhandle.Since the
GetCCursorfunction creates a newCCrsrrecord each time it is called, your application shouldn't call theGetCCursorfunction before each call to theSetCCursorprocedure (unlike the wayGetCursorandSetCursorare normally used). TheGetCCursorfunction doesn't dispose of or detach the resource, so resources of type'crsr'should typically be purgeable. You should call theDisposeCCursorprocedure (described on page 8-25) when you are finished using the color cursor created withGetCCursor.SEE ALSO
For a description of the'crsr'resource format, see page 8-32. For a description of theCCrsrrecord, see page 8-16. For a description of theSetCCursorprocedure, see the next section.