Share via


CRect::BottomRight

Se devuelven las coordenadas como una referencia a un objeto de CPoint incluido en CRect.

CPoint& BottomRight( ) throw( ); 
const CPoint& BottomRight( ) const throw( );

Valor devuelto

Las coordenadas de la esquina inferior derecha del rectángulo.

Comentarios

Puede utilizar esta función a obtiene o establece la esquina inferior derecha del rectángulo.Establezca la esquina utilizando esta función en el lado izquierdo del operador de asignación.

Ejemplo

// use BottomRight() to retrieve the bottom
// right point

CRect rect(210, 150, 350, 900);
CPoint ptDown;

ptDown = rect.BottomRight();

// ptDown is now set to (350, 900)
ASSERT(ptDown == CPoint(350, 900));

// or, use BottomRight() to set the bottom
// right point

CRect rect2(10, 10, 350, 350);
CPoint ptLow(180, 180);

rect2.BottomRight() = ptLow;

// rect2 is now (10, 10, 180, 180)
ASSERT(rect2 == CRect(10, 10, 180, 180));   

Requisitos

encabezado: atltypes.h

Vea también

Referencia

Clase de CRect

Gráfico de jerarquía

CRect::TopLeft

Clase de CPoint

CRect::CenterPoint