The size box, in the lower-right corner of a window's content region, allows the user to change a window's size. When the user positions the cursor in the size box and presses the mouse button, your application can call the Window Manager's ResizeWindow function. This function displays a grow image--an outline of the window's frame and scroll bar areas, which expands or contracts as the user drags the size box. The grow image indicates where the window edges would be if the user released the mouse button at any given moment.
The ResizeWindow function moves the grow image around the screen, following the user's cursor movements, and handles all user interaction until the mouse button is released. Unlike with the function GrowWindow , there is no need to follow this call with a call to the function SizeWindow , because once the mouse button is released, ResizeWindow resizes the window if the user has changed the window size. Once the resizing is complete, ResizeWindow draws the window in the new size.
Your application should call the ResizeWindow function instead of the earlier Window Manager functions SizeWindow and GrowWindow . Some appearances may allow the window to be resized from any corner, not just the bottom right, and as a result, when the user resizes the window, the window may move on the screen and not merely change size. ResizeWindow informs your application of the new window bounds, so that your application can respond to any changes in the window's position.
IMPORTANT
The ResizeWindow function is supported under Mac OS 8.6 and later.
To avoid an unmanageably large or small window, you supply the lower and upper size limits for the window in the sizeConstraints parameter of ResizeWindow . Note that although you supply ResizeWindow with the size limits via a structure of type Rect , the values referenced through the sizeConstraints parameter represent window dimensions, not screen coordinates.