COleControl::SetRectInContainer

BOOL SetRectInContainer( LPRECT lpRect );

Return Value

Nonzero if the call was successful; otherwise 0.

Parameters

lpRect

A pointer to a rectangle containing the control’s new coordinates relative to the container.

Remarks

Call this function to set the coordinates of the control’s rectangle relative to the container, expressed in device units. If the control is open, it is resized; otherwise the container’s OnPosRectChanged function is called.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::GetRectInContainer, COleControl::GetControlSize