Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This function increases or decreases the width and height of the specified rectangle.
InflateRectadds dxunits to the left and right ends of the rectangle and dyunits to the top and bottom.
The dxand dyparameters are signed values.
Positive values increase the width and height.
Negative values decrease them.
Syntax
BOOL InflateRect( LPRECT lprc, int dx, int dy ); |
Parameters
- lprc
-
Long pointer to the RECTstructure 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 Value
Nonzero indicates success.
Zero indicates failure.
To get extended error information, call GetLastError.
Requirements
Header | winbase.h |
Library | Rectapi.lib |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |