CRect::Height

Calculates the height of CRect by subtracting the top value from the bottom value.

int Height( ) const throw( );

Возвращаемое значение

The height of CRect.

Заметки

The resulting value can be negative.

ПримечаниеПримечание.

The rectangle must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangle before calling this function.

Пример

CRect rect(20, 30, 80, 70);

int nHt = rect.Height();

// nHt is now 40
ASSERT(nHt == 40);   

Требования

Header: atltypes.h

См. также

Основные понятия

CRect Class

CRect Members

Hierarchy Chart

CRect::Width

CRect::Size

CRect::CenterPoint

CRect::IsRectEmpty

CRect::IsRectNull

CRect::NormalizeRect