SetCursorIcon method
Available for all objects.
Prototype
SetCursorIcon Proto hWnd:HWND, hCursorIcon:DWord
Syntax
Invoke SetCursorIcon, hWnd, hCursorIcon
Function
Sets the CursorIcon property for an object
Parameters
hWnd
Handle to the object.
hCursorIcon
A DWord value specifying the new icon to be displayed as the cursor shape for the object (see REMARKS).
Return value
Eax returns TRUE if successful, or FALSE if not.
REMARKS: The hCursorIcon parameter may be an existing resource
ID or the handle to an image (cursor or icon). First, Easy Code tries to load it as a resource (only if it is
less than 65536) and, if it fails, then it is processed as a handle. For this method to be effective, the
CursorShape property must be set to ecCustom.