onMouseMove (Callback)


onMouseMove (hWnd, x, y)

This callback is called whenever the mouse moves over the window.

Parameter Description
hWnd The handle to the window which triggered the event
x The x coordinate of the mouse, relative the the upper left hand corner of the window
y The y coordinate of the mouse, relative the the upper left hand corner of the window

Returns

0

Remarks

This is a callback function. You must suply this function yourself. Register this function with the WinXRegOnMouseMove function.

Examples

FUNCTION onMouseMove (hWnd, x, y)

'display the x and y coordinates in the first panel of the status bar
WinXStatus_SetText (#hMain, 0, "x: "+STRING(x)+", y: "+STRING(y))

END FUNCTION

Related Links

WinXRegOnMouseMove
WinXStatus_SetText