Platform |
Win32, x64 |
Purpose |
To name a call-back function that monitors which window or control has the cursor. |
Syntax |
SUBROUTINE ADD_CURSOR_MONITOR@( CB_FUNC ) |
Description |
A general mechanism is available to enable programmers to monitor the window/control that has the cursor (or the focus, see ADD_FOCUS_MONITOR@). CB_FUNC is the name of a routine that is either a function returning an integer, or a SUBROUTINE. The return value (if any) is not used. Cursor call-back functions can use the CLEARWIN_INFO@ parameter 'CURSOR_WINDOW' to determine the (integer kind=7) window handle of the control or window that has the cursor. |
Notes |
a) Window handles can be obtained using %hw (Handle) or %lc (Handle of Last Control). b) Although window handles are unique at any given time, handles can (and often do) get re-used after a window has been destroyed. |
See also |