virtual BOOL OnGetExtent( DVASPECT nDrawAspect, CSize& rSize );
Return Value
Nonzero if successful; otherwise 0.
Parameters
nDrawAspect
Specifies the aspect of the OLE item whose bounds are to be retrieved. This parameter can have any of the following values:
rSize
Reference to a CSize object that will receive the size of the OLE item.
Remarks
Called by the framework to retrieve the size, in HIMETRIC units, of the OLE item.
If the container application was written with the Microsoft Foundation Class Library, this function is called when the GetExtent member function of the corresponding COleClientItem object is called. The default implementation does nothing. You must implement it yourself. Override this function if you want to perform special processing when handling a request for the size of the OLE item.