DisposeWindow
DisposeWindow Remove window; discard ALL of its storage
#include <Windows.h> Window Manager
void DisposeWindow(theWindow );
WindowPtr theWindow ; window to close and dispose
DisposeWindow removes a window from the screen, removes it from the
window list, and discards all of its data storage, including the WindowRecord.
theWindow is a WindowPtr (pointer to a WindowRecord).
Returns: none

Notes: Use DisposeWindow if you allowed the system to allocate storage for the
WindowRecord; i.e., if you used wStorage=0 in the previous call to
If you allocated the WindowRecord storage yourself (e.g., created it as an
auto variable), use CloseWindow instead.