WinXRegOnClose


WinXRegOnClose (hWnd, FUNCADDR onClose)

Registers the onClose callback

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

Returns

$$TRUE on success or $$FALSE on fail

Remarks

Once registered, the onClose callback will be invoked whenever the user attempts to close you window.

Examples

'register the onClose callback
WinXRegOnClose (#hMain, &onClose())

Related Links

onClose (Callback)