CMD-CLOSE
This event is fired when the user has pressed the close button on the title bar of a DOCKABLE, MDI-CHILD, FLOATING or INDEPENDENT window. The event is fired only if the window has the SYSTEM MENU attribute. The window is not automatically destroyed: this action has to be performed by the program. The EVENT-WINDOW-HANDLE data item contains the handle of the window that has generated the event.