Returns the size that the specified view object will be drawn on the specified
| DWORD dwAspect,
||//Specifies the view object for which the size is being requested
| DWORD lindex,
||//Specifies the part of the object to draw
| DVTARGETDEVICE ptd,
||//Specifies the target device in a structure
| LPSIZEL lpsizel
||//Points to size of object
[in]Specifies the requested view of the object whose size is of interest.
Valid values are taken from the enumeration DVASPECT
. See the DVASPECT
enumeration for more information.
[in]Indicates the portion of the object that is of interest. Currently only -1
[in]Points to the target device for which the object's size should be returned.
Points to location where the object's size is returned.
The object's extent was successfully returned.
An appropriate cache is not available.
Insufficient memory to execute this operation.
The OLE-provided implementation of IViewObject2::GetExtent
searches the cache for the size of the view object.
method in the IOleObject
interface provides some of the same information as IViewObject2::GetExtent
Note to Callers
To prevent the object from being run if it isn't already running, you can call IViewObject2::GetExtent
rather than IOleObject::GetExtent
to determine the size of the presentation to be drawn.
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database