8.3. AutoSize Property

Description

Returns or sets the value that defines how the control size is determined.

Syntax

HRESULT get_AutoSize(HANDLE handle, VARIANT_BOOL* pVal);
HRESULT put_AutoSize(HANDLE handle, VARIANT_BOOL val);

Remarks

AutoSize controls how the object responds to the sizing request from the container. When AutoSize is FALSE, the object redraws itself to the maximum extent that the container specifies; otherwise it calculates the display size by multiplying its natural size with the ZoomRatio, and draws itself within the display size.

When AutoSize is changed from FALSE to TRUE, the ZoomRatio is changed back to 1.0.

See Also

Section 8.50, “ZoomRatio Property”

Section 8.2, “AutoLabelSize Property”