Export (0) Print
Expand All

CSize Class

Similar to the Windows SIZE structure, which implements a relative coordinate or position.

class CSize : public tagSIZE

Name

Description

CSize::CSize

Constructs a CSize object.

Name

Description

CSize::operator -

Subtracts two sizes.

CSize::operator !=

Checks for inequality between CSize and a size.

CSize::operator +

Adds two sizes.

CSize::operator +=

Adds a size to CSize.

CSize::operator -=

Subtracts a size from CSize.

CSize::operator ==

Checks for equality between CSize and a size.

This class is derived from the SIZE structure. This means you can pass a CSize in a parameter that calls for a SIZE and that the data members of the SIZE structure are accessible data members of CSize.

The cx and cy members of SIZE (and CSize) are public. In addition, CSize implements member functions to manipulate the SIZE structure.

Note Note

For more information on shared utility classes (like CSize), see Shared Classes.

Header: atltypes.h

Show:
© 2014 Microsoft