int Height( ) const;
Return Value
The height of CRect.
Remarks
Calculates the height of CRect by subtracting the top value from the bottom value. The resulting value can be negative.
Note The rectangle must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangle before calling this function.
Example
CRect rect(20, 30, 80, 70);
int nHt = rect.Height();
// nHt is now 40
ASSERT(nHt == 40);
CRect Overview | Class Members | Hierarchy Chart
See Also CRect::Width, CRect::Size, CRect::CenterPoint, CRect::IsRectEmpty, CRect::IsRectNull, CRect::NormalizeRect