Important: The information in this document is obsolete and should not be used for new development.
GetCCursor
You use theGetCCursor
function 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
TheGetCCursor
function creates a newCCrsr
record and initializes it using the information in the'crsr'
resource with the specified ID. TheGetCCursor
function returns a handle to the newCCrsr
record. 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 aNIL
handle.Since the
GetCCursor
function creates a newCCrsr
record each time it is called, your application shouldn't call theGetCCursor
function before each call to theSetCCursor
procedure (unlike the wayGetCursor
andSetCursor
are normally used). TheGetCCursor
function doesn't dispose of or detach the resource, so resources of type'crsr'
should typically be purgeable. You should call theDisposeCCursor
procedure (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 theCCrsr
record, see page 8-16. For a description of theSetCCursor
procedure, see the next section.