BOOL InflateRect(lprc, X, Y) | |||||
LPRECT lprc; | /* address of rectangle | */ | |||
int X; | /* amount to increase or decrease width | */ | |||
int Y; | /* amount to increase or decrease height | */ |
This function increases or decreases the width and height of the specified rectangle. The InflateRect function adds X units to the left and right ends of the rectangle, and adds Y units to the top and bottom. The X and Y parameters are signed values; positive values increase the width and height, and negative values decrease them.
lprc
Points to the RECT structure to be modified.
X
Specifies the amount to increase or decrease the rectangle width. It must be negative to decrease the width.
Y
Specifies the amount to increase or decrease the rectangle height. It must be negative to decrease the height.
Returns TRUE for success, FALSE for failure.
The coordinate values of a rectangle must not be greater than MAXCOORD units or less than MINCOORD units. The X and Y parameters must be chosen carefully to prevent invalid rectangles.