SetCursorShape method


Available for all objects.

Prototype

SetCursorShape Proto hWnd:HWND, lCursorShape:LONG

Syntax

Invoke SetCursorShape, hWnd, lCursorShape

Function

Sets the CursorShape property for an object.

Parameters

hWnd

Handle to the object.

lCursorShape

A LONG value specifying the new cursor shape for the object. It can be one of the following values:

ecDefault0
ecArrow1
ecIBeam2
ecWait3
ecCross4
ecUpArrow5
ecSizeAll6
ecSizeNWSE7
ecSizeNESW8
ecSizeWE9
ecSizeNS10
ecNoDrop11
ecAppStarting12
ecHelp13
ecCustom14

Return value

Eax returns TRUE if succesful, or FALSE if not.