COleClientItem::GetCachedExtent
BOOLGetCachedExtent(LPSIZElpSize**,DVASPECTnDrawAspect=(DVASPECT)-1);**
Return Value
Nonzero if successful; 0 if the OLE item is blank.
Parameters
lpSize
Pointer to a SIZE structure or a CSize object that will receive the size information.
nDrawAspect
Specifies the aspect of the OLE item whose bounds are to be retrieved. For possible values, see SetDrawAspect.
Remarks
Call this function to retrieve the OLE item’s size. This function provides the same information as GetExtent. However, you can call GetCachedExtent to get extent information during the processing of other OLE handlers, such as OnChange. The dimensions are in MM_HIMETRIC units.
This is possible because GetCachedExtent uses the interface rather than use the interface to get the extent of this item. The IViewObject2 COM object caches the extent information used in the previous call to .
For more information, see in the OLE documentation.
COleClientItem Overview | Class Members | Hierarchy Chart
See Also COleClientItem::GetExtent, COleClientItem::SetExtent, COleServerItem::OnGetExtent