MoveControl
short toHoriz ; horizontal position, in local coordinates
short toVert ; vertical position, in local coordinates
MoveControl changes the position of a control. Call it to update the position of scroll bars when you horizontally re-size a window.
theControl is a handle leading to a variable-length ControlRecord structure. It specifies which control to move.
toHoriz and . . .
toVert specify the new position for the control. The control will be drawn
with its top left corner at this coordinate pair, expressed in local
coordinates.
Notes: MoveControl changes the position of theControl by erasing it, off setting the contrlRect field of its ControlRecord, and redrawing it at the new position.
You will use this in a sequence that sizes a window. The SizeWindow function does not move controls; so after sizing a window, scroll bars
remain somewhere in the middle of the window or at invalid coordinates
outside of the window. A normal window-sizing function ( executed upon
getting an inGrow return value from FindWindow after a mouseDown InvalRect prepare for an update event on the contents UpdtMyWndo() update contents of window
Controls normally remain stationary relative to their enclosing window,
but if you should need to let the user move one or move a control indicator,