| WinReOpen | Function (ROM Call 0x22)

wingraph.h

short WinReOpen (WINDOW *w, const WIN_RECT *rect, unsigned short Flags, ...);

Reopens an existing window.

WinReOpen acts like WinOpen, but reopens an existing window. Not valid for windows created in WF_SAVE_SCR mode (unless using just to call WinOpen). If the window is not in the "list of windows" then just calls WinOpen. Otherwise, it updates the Client, Window, Clip, and Port regions of the window. If the new window is of the same size as the old one, then the Port region (DUP_SCR) is not cleared. Returns TRUE if the window re-opened OK, and returns FALSE if not (bad window or not enough memory to enlarge DUP_SCR).
Note: This is the official information by Texas Instruments. I am not sure that I fully understood what they want to say. It seems that you can reopen a window on a new place (keeping the same size), then redraw the window on a new position using WinBackupToScr.

Uses: FirstWindow, WinHome, WinOpen, WinRemove, HeapRealloc, BitmapInit, BitmapSize, memset, UpdateWindows