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


COleControl::SetInitialSize

Sets the size of an OLE control when first displayed in a container.

void SetInitialSize(
   int cx,
   int cy 
);

Параметры

  • cx
    The initial width of the OLE control in pixels.

  • cy
    The initial height of the OLE control in pixels.

Заметки

Call this function in your constructor to set the initial size of your control. The initial size is measured in device units, or pixels. It is recommended that this call be made in your control's constructor.

Требования

Header: afxctl.h

См. также

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

COleControl Class

COleControl Members

Hierarchy Chart