WinXRegOnFocusChange


WinXRegOnFocusChange (hWnd, FUNCADDR onFocusChange)

Registers a callback function which is invoked when the window gains or looses input focus.

Parameter Description
hWnd The handle to the window to register the callback for
FUNCADDR onFocusChange The address of the onFocusChange callback function

Returns

$$TRUE on success or $$FALSE on fail

Remarks

You can use this callnback to detect when you gain and loose input focus so you can create and destroy the caret as necassary.

Examples

' Register the onFocusChange callback
WinXRegOnFocusChange (#hMain, &onFocusChange())

Related Links

onFocusChange