 |
WinRemove |
Function (ROM Call 0x414*) |
Closes the window pointed to by w, and frees the memory assigned to that window.
If UpdateScreen is TRUE, the next window in the linked list of windows is activated and the screen is updated.
If UpdateScreen is FALSE, no window is activated and the screen is not updated.
In fact, WinClose calls WinRemove with UpdateScreen = TRUE on all AMS versions.
Virtual windows (the ones with WF_VIRTUAL flag set) should be closed with:
WinRemove(&w,FALSE);
Uses: UpdateWindows, HeapFree, BitmapPut, FontSetSys, ScrRect, DrawWinBorder, FirstWindow, WinClr, WinDeactivate
Used by: cmd_newpic, WinClose, WinReOpen
See also: WinClose, WinOpen