Unicode Controls & Classes for VB6 - Version 4

clsCommonWrapper.InflateRect Method

The InflateRect function 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.

Syntax
Public Sub InflateRect (ByRef lpRect As RECT, _
ByVal x As Long, _
ByVal y As Long)
Parameters
Parameter Description
ByRef lpRect As RECT A pointer to the RECT structure that increases or decreases in size.
ByVal x As Long The amount to increase or decrease the rectangle width. This parameter must be negative to decrease the width.
ByVal y As Long The amount to increase or decrease the rectangle height. This parameter must be negative to decrease the height.
Remarks
Because applications can use rectangles for different purposes, the rectangle functions do not use an explicit unit of measure. Instead, all rectangle coordinates and dimensions are given in signed, logical values. The mapping mode and the function in which the rectangle is used determine the units of measure.