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.
CDC::InvertRect
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void InvertRect( LPRECT lpRect );
 
  Parameter   Description
 
  <lpRect>    Points to a RECT or CRect that contains the logical
              coordinates of the rectangle to be inverted. You can also
              pass a CRect object for this parameter.
 
  Remarks
 
  Inverts the contents of the given rectangle. On monochrome displays, the
  function makes white pixels black, and black pixels white. On color
  displays, the inversion depends on how colors are generated for the
  display. Calling InvertRect twice with the same rectangle restores the
  display to its previous colors.
 
  If the rectangle is empty, nothing is drawn.
 
  See Also
 
  ::InvertRect, CRect, RECT
 
 
                                     -♦-