Поделиться через


COleControl::SetRectInContainer

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

BOOL SetRectInContainer(
   LPCRECT lpRect 
);

Параметры

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

Возвращаемое значение

Nonzero if the call was successful; otherwise 0.

Заметки

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

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart

COleControl::GetRectInContainer

COleControl::GetControlSize