CRect::Width

This method calculates the width of a CRect object by subtracting the left value from the right value. The 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

int Width( ) const;

See Also

CRect::Height, CRect::Size, CRect::IsRectEmpty, CRect::IsRectNull, CRect::NormalizeRect