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::IntersectRect
CRect                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int IntersectRect( LPRECT lpRect1, LPRECT lpRect2 );
 
  Parameter   Description
 
  <lpRect1>   Points to a RECT or CRect that contains a source rectangle.
 
  <lpRect2>   Points to a RECT or CRect that contains a source rectangle.
 
  Remarks
 
  Makes the CRect equal to the intersection of two existing rectangles.
  The intersection is the largest rectangle contained in both existing
  rectangles.
 
  Return Value
 
  TRUE if the intersection of the two rectangles is not empty. It is FALSE
  if the intersection is empty.
 
  See Also
 
  ::IntersectRect, CRect::operator &=, CRect::operator &
 
 
                                     -♦-