onFocusChange (Callback)


onFocusChange (hWnd, hasFocus)

This callback is invoked when the window gains or looses input focus

Parameter Description
hWnd The handle to the window which is gaining or loosing input focus
hasFocus $$TRUE if the window is gaining input focus, $$FALSE if it it loosing input focus

Returns

0

Remarks

This is a callback function, you must implement it yourself. To register this callback, use the WinXRegOnFocusChange function.

Examples

' An onFocusChange callback function
FUNCTION onFocusChange (hWnd, hasFocus)

IF hasFocus THEN PRINT "Got Focus" ELSE PRINT "Focus gone"

END FUNCTION

Related Links

WinXRegOnFocusChange