다음을 통해 공유


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

Reference

COleControl Class

Hierarchy Chart

Other Resources

COleControl Members