Important: The information in this document is obsolete and should not be used for new development.
SetCursor
After using theGetCursorfunction to return a handle to a cursor as described in the preceding section, you can use theSetCursorprocedure to make that cursor the current cursor.
PROCEDURE SetCursor (crsr: Cursor);
crsr- A
Cursorrecord, as described on page 8-14.DESCRIPTION
TheSetCursorprocedure displays the cursor you specify in thecrsrparameter. If the cursor is hidden, it remains hidden and attain its new appearance only when it's uncovered. If the cursor is already visible, it changes to the new appearance immediately.You need to use the
InitCursorprocedure (described on page 8-20) to initialize the standard arrow cursor and make it visible on the screen before you can callSetCursorto change the cursor's appearance.To display a color cursor, you must use the
SetCCursorprocedure, which is described on page 8-24.SEE ALSO
Listing 8-2 on page 8-9 illustrates how to use theGetCursorandSetCursorroutines to change the cursor's shape.