COleControl::SetControlSize

BOOL SetControlSize( int cx, int cy );

Return Value

Nonzero if the call was successful; otherwise 0.

Parameters

cx

Specifies the new width of the control in pixels.

cy

Specifies the new height of the control in pixels.

Remarks

Call this function to set the size of the OLE control window and notify the container that the control site is changing. This function should not be used in your control’s constructor.

Note that all coordinates for control windows are relative to the upper-left corner of the control.

COleControl OverviewClass MembersHierarchy Chart

See Also   COleControl::GetControlSize, COleControl::GetRectInContainer