ControlContext :: closeControl - Close control
The function forces the current control (or window) to be closed. After closing a control it might be reactivated by calling c reateControl() .
Notes:
When closing the control, the context will be destroyed. Thus, when closing the current control, the function call should be the last in the function, since context resources are not available anymore, when returning from the function.