InflateRect

This function increases or decreases the width and height of the specified rectangle. InflateRect 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.

BOOL InflateRect(
LPRECT lprc, 
int dx, 
int dy
); 

Parameters

  • lprc
    Long pointer to the RECT structure that increases or decreases in size.
  • dx
    Specifies the amount to increase or decrease the rectangle width. This parameter must be negative to decrease the width.
  • dy
    Specifies the amount to increase or decrease the rectangle height. This parameter must be negative to decrease the height.

Return Values

Nonzero indicates success. Zero indicates failure.

To get extended error information, call GetLastError.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Winbase.h   Rectapi.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetLastError, InsetRect, IntersectRect, OffsetRect, UnionRect, RECT

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.