| #include <ole.h> |
| OLESTATUS OleQueryBounds(lpObject, lpBounds) | |||||
| LPOLEOBJECT lpObject; | /* address of object to query | */ | |||
| RECT FAR* lpBounds; | /* address of structure for bounding rectangle | */ | |||
The OleQueryBounds function retrieves the extents of the bounding rectangle on the target device for the specified object. The coordinates are in MM_HIMETRIC units.
lpObject
Points to the object to query.
lpBounds
Points to a RECT structure for the extents of the bounding rectangle. The members of the RECT structure have the following meanings:
| Member | Meaning |
| rect.left | 0 |
| rect.top | 0 |
| rect.right | x-extent |
| rect.bottom | y-extent |
The return value is OLE_OK if the function is successful. Otherwise, it is an error value, which may be one of the following:
OLE_ERROR_BLANK
OLE_ERROR_MEMORY
OLE_ERROR_OBJECT