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.
CRgn::PtInRegion
CRgn                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL PtInRegion( int x, int y ) const;
  BOOL PtInRegion( POINT point ) const;
 
  Parameter   Description
 
  <x>         Specifies the x-coordinate of the point to test.
 
  <y>         Specifies the y-coordinate of the point to test.
 
  <point>     The x- and y-coordinate of <point> specify the x- and
              y-coordinate of the point to test the value of. The <point>
              parameter can either be a POINT structure or a CPoint
              object.
 
  Remarks
 
  Checks whether the point given by <x> and <y> is in the region stored in
  the CRgn object.
 
  Return Value
 
  TRUE if the point is in the region; otherwise FALSE.
 
  See Also
 
  ::PtInRegion
 
 
                                     -♦-