Dela via


COleControl::SetRectInContainer

Sets the coordinates of the control's rectangle relative to the container, expressed in device units.

BOOL SetRectInContainer(
   LPCRECT lpRect 
);

Parameters

  • lpRect
    A pointer to a rectangle containing the control's new coordinates relative to the container.

Return Value

Nonzero if the call was successful; otherwise 0.

Remarks

If the control is open, it is resized; otherwise the container's OnPosRectChanged function is called.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

COleControl::GetRectInContainer

COleControl::GetControlSize

Other Resources

COleControl Members