sizeMode

Type: Integer

The sizeMode property of the OleControl class controls the automatic sizing of the control or image. The sizing values are listed in the following table.

OleControl Class Constant Value Description
SizeMode_ClipToControl 0 Show as much of the image as fits in the control (the default).
SizeMode_StretchToControl 1 Stretch the image to the size of the control.
SizeMode_AutoSizeControl 2 Stretch the control to the size of the image (occurs only when not active).
SizeMode_Proportional 3 Stretch the image to the size of the control that has been resized proportional to the dimensions of the object (the control never gets larger).