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
Call this function to specify how much space is available to the OLE item. 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 OLE documentation.
COleClientItem Overview | Class Members | Hierarchy Chart
See Also COleClientItem::GetExtent, COleClientItem::GetCachedExtent, COleServerItem::OnSetExtent