共用方式為


CComControlBase::m_sizeNatural

The physical size of the control in HIMETRIC units (each unit is 0.01 millimeters).

SIZE m_sizeNatural;

Remarks

注意

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.

This size is fixed, while the size in m_sizeExtent is scaled by the display.

You can convert the size to pixels with the global function AtlHiMetricToPixel.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class

SIZE

CComControlBase::m_sizeExtent

Other Resources

CComControlBase Members