Udostępnij za pośrednictwem


COleControl::OnSetObjectRects

Called by the framework to implement a call to IOleInPlaceObject::SetObjectRects.

virtual BOOL OnSetObjectRects( 
   LPCRECT lpRectPos, 
   LPCRECT lpRectClip  
);

Parameters

  • lpRectPos
    A pointer to a RECT structure indicating the control's new position and size relative to the container.

  • lpRectClip
    A pointer to a RECT structure indicating a rectangular area to which the control is to be clipped.

Return Value

Nonzero if the repositioning was accepted; otherwise 0.

Remarks

The default implementation automatically handles the repositioning and resizing of the control window and returns TRUE.

Override this function to alter the default behavior of this function.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

Other Resources

COleControl Members