CRect::IsRectNull
BOOLIsRectNull()const;
Return Value
Nonzero if CRect’s top, left, bottom, and right values are all equal to 0; otherwise 0.
Remarks
Determines whether the top, left, bottom, and right values of CRect are all equal to 0. Differs from IsRectEmpty, which determines whether the rectangle is empty.
Example
CRect rectNone(0, 0, 0, 0);
CRect rectSome(35, 50, 135, 150);
ASSERT(rectNone.IsRectNull());
ASSERT(!rectSome.IsRectNull());
// note that null means _all_ zeros
CRect rectNotNull(0, 0, 35, 50);
ASSERT(!rectNotNull.IsRectNull());
CRect Overview | Class Members | Hierarchy Chart
See Also CRect::IsRectEmpty, CRect::SetRectEmpty