Share via


CRect::BottomRight

Le coordinate sono restituiti come un riferimento a un oggetto CPoint contenuto in CRect.

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

Valore restituito

Le coordinate di angolo inferiore destro del rettangolo.

Note

È possibile utilizzare questa funzione per ottenere o impostare l'angolo inferiore destro del rettangolo.Impostare l'angolo tramite questa funzione a sinistra dell'operatore di assegnazione.

Esempio

// 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));   

Requisiti

Header: atltypes.h

Vedere anche

Riferimenti

Classe di CRect

Grafico della gerarchia

CRect::TopLeft

Classe di CPoint

CRect::CenterPoint