Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InflateRect

Windows Mobile 6.5
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.

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.

Negative values decrease them.


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

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.

Nonzero indicates success.

Zero indicates failure.

To get extended error information, call GetLastError.

Headerwinbase.h
LibraryRectapi.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft