Function:
SetCursor(hCursor)

Description:
Sets the image used to represent the mouse cursor. The new cursor can be any valid cursor that has either been created or loaded.

Parameters:
hCursor: Handle to a cursor to represent the mouse pointer.

Returns:
If the function succeeds, the return value is the handle of the previous cursor, if there was one. If the function fails, the return value is zero.

Example:
Select the icon to download the sample cursor.a5p. This file demonstrates setting the cursor to an animated cursor (loaded from a file) or a Windows cursor.