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 CSize
                                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Description
 
  The CSize class is similar to the Windows SIZE structure, which
  implements a relative coordinate or position.
 
  A SIZE structure has the following form:
 
  typedef struct tagSIZE {
     int cx;
     int cy;
  } SIZE;
 
  The cx and cy members of CSize are public. In addition, CSize implements
  member functions to manipulate the SIZE structure.
 
  Because CSize derives from tagSIZE, CSize objects may be used as SIZE
  structures.
 
  See Also
 
  CRect, CPoint
 
  Public Members
 
  Construction/Destruction
 
  CSize   Constructs a CSize object.
 
  Operations
 
  operator==   Checks for equality between CSize and a size.
 
  operator!=   Checks for inequality between CSize and a size.
 
  operator+=   Adds a size to CSize.
 
  operator-=   Subtracts a size from CSize.
 
  Operators Returning CSize Values
 
  operator+   Adds the two sizes.
 
  operator-   Subtracts the two sizes.
 
 
                                     -♦-