Advanced - Invoked when the cursor leaves the non-client area of the window specified in a prior call to TrackMouseEvent.
callback function <dialogName>.OnNCMouseLeave()
This is still quite Win32 bound - would you like some wrapper? Let us know!
Thanks to pseudo-object global nature, you can reach for any dialog/control pseudo-objects from this callback.
You can also reach for low level callback parameters.
#resource "frmMain.rc" ' Resource file containing dialog named frmMain and button named btnClose
dialog new units, name frmMain, %HWND_DESKTOP ' Style and controls loaded from RC file,
' dialog and control have now automatic frmMain and btnClose pseudo-objects
dialog show modal frmMain.Handle ' Dialog displayed as modal
' Event handler for named dialog
callback function frmMain.OnNCMouseLeave()