CRect::InflateRect

Syntax

void InflateRect( int x, int y );

void InflateRect( SIZE size );

Parameters

x

Specifies the amount to increase or decrease CRect's width. It must be negative to decrease the width.

y

Specifies the amount to increase or decrease CRect's height. It must be negative to decrease the height.

size

Contains a SIZE or CSize that specifies x and y amounts to add to the CRect's height and width.

Remarks

InflateRect's parameters are signed values; positive values inflate the CRect, and negative values deflate it.

When inflated, CRect's width is increased by two times x, and its height is increased by two times y.

See Also

::InflateRect