COleControl::GetRectInContainer

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

BOOL GetRectInContainer(
   LPRECT lpRect 
);

参数

  • lpRect
    对控件的坐标要复制的矩形结构的指针。

返回值

非零,如果该控件是就地活动状态;否则为0。

备注

如果该控件是就地活动状态,矩形才有效。

要求

Header: afxctl.h

请参见

参考

COleControl选件类

层次结构图

COleControl::SetRectInContainer

COleControl::GetControlSize