Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SetCursor
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
void SetCursor(lpCursorShape)
LPCURSORSHAPE lpCursorShape;
 
The SetCursor function sets the cursor bitmap that defines the cursor shape.
Each call replaces the previous bitmap with that pointed to by
lpCursorShape. If lpCursorShape is NULL, the cursor has no shape and its
image is removed from the display screen.
 
Parameter      Description
────────────────────────────────────────────────────────────────────────────
 
lpCursorShape  Points to a CURSORSHAPE structure that specifies the
               appearance of the cursor for the specified device.
 
Return Value
 
This function has no return value.
 
Comments
 
The export ordinal for this function is 102.
 
The cursor bitmap is actually two bitmaps. The first bitmap is ANDed with
the contents of the screen, and the second is XORed with the result. This
helps to preserve the appearance of the screen as the cursor is replaced and
ensures that at least some of the cursor is visible on all the potential
backgrounds.
 
                                      ♦