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 |
$$TRUE on success or $$FALSE on fail
You can use this callnback to detect when you gain and loose input focus so you can create and destroy the caret as necassary.
' Register the onFocusChange callback |