COleClientItem::SetItemRects

BOOL SetItemRects( LPCRECT lpPosRect = NULL, LPCRECT lpClipRect = NULL );

Return Value

Nonzero if successful; otherwise, 0.

Parameters

lprcPosRect

Pointer to the rectangle containing the bounds of the OLE item relative to its parent window, in client coordinates.

lprcClipRect

Pointer to the rectangle containing the bounds of the visible portion of the OLE item relative to its parent window, in client coordinates.

Remarks

Call this function to set the bounding rectangle or the visible rectangle of the OLE item. This function is called by the default implementation of the OnChangeItemPosition member function. You should call this function whenever the position or visible portion of the OLE item changes. Usually this means that you call it from your view’s OnSize and OnScrollBy member functions.

For more information, see IOleInPlaceObject::SetObjectRects in the OLE documentation.

COleClientItem OverviewClass MembersHierarchy Chart

See Also   COleClientItem::OnChangeItemPosition, COleClientItem::OnGetItemPosition