MoveWindow
void MoveWindow( theWindow, hGlobal, vGlobal, front ); short hGlobal ; horizontal coordinate (global screen ref)
short vGlobal ; vertical coordinate (global screen ref)
MoveWindow moves the window to the selected coordinates and optionally makes the window active.
theWindow specifies the window to move.
hGlobal and...
vGlobal specify the desired new position of the top left corner of the window,
in global screen coordinates.
front is a Boolean value specifying whether the window should be activated, highlighted and moved to the frontmost plane. It is one of:
FALSE Leave in current plane (don't move to front)
Notes: This does not affect the window's local coordinates. It moves the GrafPort to the specified coordinates.
Use front = FALSE to reposition inactive windows within their current plane. A TRUE value lets you move the window while also selecting it. Windows are normally re- positioned in response to mouse actions (see
DragWindow). You might use this function in some sort of automatic window-reorganizing scheme, or after allowing a user to specify numerical
screen coordinates.