Share via


IOleInPlaceObjectWindowlessImpl::SetObjectRects

Called by the container to inform the control that its size and/or position has changed.

HRESULT SetObjectRects( 
   LPCRECT prcPos, 
   LPCRECT prcClip  
);

Remarks

Updates the control's m_rcPos data member and the control display. Only the part of the control that intersects the clip region is displayed. If a control's display was previously clipped but the clipping has been removed, this function can be called to redraw a full view of the control.

See IOleInPlaceObject::SetObjectRects in the Windows SDK.

Requirements

Header: atlctl.h

See Also

Reference

IOleInPlaceObjectWindowlessImpl Class

CComControlBase::m_rcPos

Other Resources

IOleInPlaceObjectWindowlessImpl Members