Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CRect::InflateRect
CRect                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void InflateRect( int x, int y );
  void InflateRect( SIZE size );
 
  Parameter   Description
 
  <x>         Specifies the amount to increase or decrease CRect's width.
              It must be negative to decrease the width.
 
  <y>         Specifies the amount to increase or decrease CRect's height.
              It must be negative to decrease the height.
 
  <size>      Contains a SIZE or CSize that specifies x and y amounts to
              add to the CRect's height and width.
 
  Remarks
 
  InflateRect's parameters are signed values; positive values inflate the
  CRect, and negative values deflate it.
 
  When inflated, CRect's width is increased by two times <x>, and its
  height is increased by two times <y>.
 
  See Also
 
  ::InflateRect
 
 
                                     -♦-