共用方式為


CComControlBase::m_bAutoSize

Flag indicating the control cannot be any other size.

unsigned m_bAutoSize:1;

Remarks

This flag is checked by IOleObjectImpl::SetExtent and, if TRUE, causes the function to return E_FAIL.

注意

To use this data member within your control class, you must declare it as a data member in your control class. Your control class will not inherit this data member from the base class because it is declared within a union in the base class.

If you add the Auto Size option on the Stock Properties tab of the ATL Control Wizard, the wizard automatically creates this data member in your control class, creates put and get methods for the property, and supports IPropertyNotifySink to automatically notify the container when the property changes.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class

IOleObjectImpl::SetExtent

Other Resources

CComControlBase Members