# InflateRect

## Description

Increases or decreases the width and height of the specified rectangle.

## Syntax

BOOL InflateRect( RECT * lprc, int dx, int dy )


## Parameters

lprc
[modify] Pointer to a RECT structure that increases or decreases in size.
dx
[input] Specifies the amount to increase or decrease the rectangle width. This parameter must be negative to decrease the width.
dy
[input] Specifies the amount to increase or decrease the rectangle height. This parameter must be negative to decrease the height.

## Return

Returns TRUE for success.

## Examples

EX1

void InflateRect_Ex1()
{
RECT rect ;
rect.left=20;
rect.top=20;
rect.right=60;
rect.bottom=60;

if(InflateRect(&rect,10,-10))
{
printf("now the rect inflate to :");
printf("left:%d  top:%d  right:%d  bottom:%d\n",rect.left,rect.top,rect.right,rect.bottom);;
}
}


## Remark

Increases or decreases the width and height of the specified rectangle.

The InflateRect function adds dx units to the left and right ends of the rectangle and dy units to the top and bottom. The dx and dy parameters are signed values; positive values increase the width and height, and negative values decrease them.