onEnterLeave (Callback)


onEnterLeave (hWnd, mouseInWindow)

This callback is invoked when the mosue enters or leaves a window

Parameter Description
hWnd The handle to the window the mouse has entered or left
mouseInWindow $$TRUE if the mouse has entered the window, $$FALSE if it has left

Returns

0

Remarks

This is a callback function. You must supply it yourself. To register this callback, use the WinXRegOnEnterLeave function.

Examples

' a simple onEnterLeave callback
FUNCTION onEnterLeave (hWnd, mouseInWindow)

IF mouseInWindow THEN
  PRINT "The mouse has entered the window"
ELSE
  PRINT "The mouse has left the window"
END IF

END FUNCTION

Related Links

WinXRegOnEnterLeave