![]() |
SizeControl |
||||
Header: | Controls.h | Carbon status: | Supported | |
Changes the size of a controls rectangle.
void SizeControl ( ControlRef theControl, SInt16 w, SInt16 h );
A handle to the control you wish to resize.
The new width, in pixels, of the resized control.
The new height, in pixels, of the resized control.
The SizeControl function changes the rectangle specified in the contrlRect field of the control structure. The lower-right corner of the rectangle is adjusted so that it has the width and height specified by the w and h parameters; the position of the upper-left corner is not changed. If the control is currently visible, its first hidden and then redrawn in its new size. The SizeControl function will change the windows update region.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)