CRect::IsRectEmpty

This method determines whether a CRect object is empty. A rectangle is empty if the width and/or height are 0 or negative. Differs from IsRectNull, which determines whether all coordinates of the rectangle are zero.

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

BOOL IsRectEmpty( ) const;

See Also

CRect::IsRectNull, CRect::SetRectEmpty, CRect::NormalizeRect