COleControl::SetRectInContainer

设置控件的矩形坐标相对于容器,表示为组件度量单位。

BOOL SetRectInContainer(
   LPCRECT lpRect 
);

参数

  • lpRect
    对包含控件的新坐标的矩形指针相对于容器。

返回值

非零,则调用成功;否则为0。

备注

如果该控件是打开的,它将调整;否则容器的 OnPosRectChanged 函数调用。

要求

Header: afxctl.h

请参见

参考

COleControl选件类

层次结构图

COleControl::GetRectInContainer

COleControl::GetControlSize