WinXSetCursor


WinXSetCursor (hWnd, hCursor)

Sets the cursor for a window

Parameter Description
hWnd The handle to the window to set the cursor for
hCursor The handle to the cursor to use for the window

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The the mouse pointer will change to the window cursor whenever the mouse is inside the window. Use the LoadCursorA Win32 API function to load a cursor for this function.

Examples

' Set the window cursor the the I beam
WinXSetCursor (#hMain, LoadCursorA (0, $$IDC_IBEAM))

Related Links

WinXNewWindow
WinXNewChildWindow
WinXSetWindowColour
WinXSetFont