IOleObjectImpl::SetExtent

Sets the extent of the control's display area.

STDMETHOD(SetExtent)( 
   DWORD dwDrawAspect, 
   SIZEL* psizel  
);

Remarks

Otherwise, SetExtent stores the value pointed to by psizel in the control class data member CComControlBase::m_sizeExtent. This value is in HIMETRIC units (0.01 millimeter per unit).

If the control class data member CComControlBase::m_bResizeNatural is TRUE, SetExtent also stores the value pointed to by psizel in the control class data member CComControlBase::m_sizeNatural.

If the control class data member CComControlBase::m_bRecomposeOnResize is TRUE, SetExtent calls SendOnDataChange and SendOnViewChange to notify all advisory sinks registered with the advise holder that the control size has changed.

See IOleObject::SetExtent in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IOleObjectImpl Class

IOleObjectImpl::GetExtent

CComControlBase::SendOnDataChange

CComControlBase::SendOnViewChange