OLESTATUS OleQueryBounds(lpObject, lpBounds) | |||||
LPOLEOBJECT lpObject; | /* pointer to object to query | */ | |||
RECT FAR* lpBounds; | /* pointer to 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 fields of the RECT structure have the following meaning:
Field | 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 can be OLE_ERROR_MEMORY, OLE_ERROR_OBJECT, or OLE_ERROR_BLANK.
OleSetBounds, SetMapMode