CRect::Size

This method retrieves the size of a CRect object. The cx and cy members of the return value contain the height and width of the CRect object. Either the height or width can be negative.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

CSize Size( ) const;

See Also

CRect::Height, CRect::Width, CRect::IsRectEmpty, CRect::IsRectNull, CRect::NormalizeRect