COleClientItem::SetExtent

Call this function to specify how much space is available to the OLE item.

void SetExtent(
   const CSize& size,
   DVASPECT nDrawAspect = DVASPECT_CONTENT 
);

Parameters

  • size
    A CSize object that contains the size information.

  • nDrawAspect
    Specifies the aspect of the OLE item whose bounds are to be set. For possible values, see SetDrawAspect.

Remarks

If the server application was written using the Microsoft Foundation Class Library, this causes the OnSetExtent member function of the corresponding COleServerItem object to be called. The OLE item can then adjust its display accordingly. The dimensions must be in MM_HIMETRIC units. Call this function when the user resizes the OLE item or if you support some form of layout negotiation.

For more information, see IOleObject::SetExtent in the Windows SDK.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::GetExtent

COleClientItem::GetCachedExtent

COleServerItem::OnSetExtent

Other Resources

COleClientItem Members