Share via


CRect::Height

Calcula el alto de CRect restando el valor superior de valor inferior.

int Height( ) const throw( );

Valor devuelto

el alto de CRect.

Comentarios

el valor resultante puede ser negativo.

[!NOTA]

El rectángulo debe ser normalizado o esta función puede producir un error.Puede llamar a NormalizeRect para normalizar el rectángulo antes de llamar a esta función.

Ejemplo

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

int nHt = rect.Height();

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

Requisitos

encabezado: atltypes.h

Vea también

Referencia

Clase de CRect

Gráfico de jerarquía

CRect::Width

CRect::Size

CRect::CenterPoint

CRect::IsRectEmpty

CRect::IsRectNull

CRect::NormalizeRect