CloseWindow
CloseWindow Remove window; retain WindowRecord
#include <Windows.h> Window Manager
void CloseWindow(theWindow );
WindowPtr theWindow ; window to close
CloseWindow removes a window from the screen, removes it from the
window list, and discards its data storage except for the WindowRecord.
theWindow is a WindowPtr (pointer to a WindowRecord).
Returns: none

Notes: Use CloseWindow if you allocated the storage for the WindowRecord
manually; i.e., if you used a non-NIL wStorage in the previous call to
If you let the system allocate the WindowRecord, use DisposeWindow
instead.