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.
lpCursorShape
Points to a CURSORSHAPE structure that specifies the appearance of the cursor for the specified device.
This function has no return value.
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.