COleControl::OnSetObjectRects

virtual BOOL OnSetObjectRects( LPCRECT lpRectPos, LPCRECT lpRectClip );

Return Value

Nonzero if the repositioning was accepted; otherwise 0.

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.

Remarks

Called by the framework to implement a call to IOleInPlaceObject::SetObjectRects. 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.

COleControl OverviewClass MembersHierarchy Chart