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.
class CPoint
                                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Description
 
  The CPoint class is similar to a Windows POINT structure and also
  includes member functions to manipulate CPoint and POINT structures.
 
  A CPoint object can be used wherever a POINT structure is used.
 
  See Also
 
  CRect, CSize
 
  Public Members
 
  Construction/Destruction
 
  CPoint   Constructs a CPoint.
 
  Operations
 
  Offset        Adds separate values to the x and y members of the
                  CPoint.
 
  operator ==   Checks for equality between two points.
 
  operator !=   Checks for inequality between two points.
 
  operator +=   Offsets a CPoint by a size.
 
  operator -=   Subtracts a size from the CPoint.
 
  Operators Returning CPoint Values
 
  operator +   Returns a CPoint offset by a size.
 
  operator -   Returns a CPoint offset by a negative size.
 
  Operators Returning CSize Values
 
  operator -   Returns the size difference between two points.
 
 
                                     -♦-