SizeWindow
void SizeWindow( theWindow, wide, high, updateFlag ); short wide ; new width
short high ; new height
SizeWindow resizes the specified window. The window frame and title are redrawn. The update region is modified ( optionally) to encompass any change
in size of the content region.
theWindow is the window to be resized.
wide and...
high are the new width and height for the window, in pixels. These
parameters are typically obtained from the value returned by
updateFlag is a Boolean value specifying how future update events will be handled. It is one of:
FALSE The new portions of the content are must be handled manually TRUE Any area added to the content region will be made part of the window's update region.
Notes: The location of the window's top left corner remains the same. The frame
is redrawn with dimensions wide and high . If the width changes, the title
is redrawn centered or truncated, if necessary.
Use updateFlag =TRUE for normal operation - this ensures that update events will occur when the newly-added region gets uncovered or changed.
However, a setting of FALSE may speed up your program if you want to be selective and ignore or optimize redrawing of the new area.
After using this function, you are responsible for moving and re drawing
any controls that changed position, especially scroll bars, which are sure to
move and/or change size.