共用方式為


COleControl::SetInitialSize

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

void SetInitialSize(
   int cx,
   int cy 
);

Parameters

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

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

Remarks

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.

Requirements

Header: afxctl.h

See Also

Concepts

COleControl Class

COleControl Members

Hierarchy Chart