Aracılığıyla paylaş


CRect::BottomRight

Koordinatları başvuru olarak döndürülen bir CPoint içinde yer alan nesne CRect.

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

Dönüş Değeri

Dikdörtgeninin sağ alt köşesinin koordinatları.

Notlar

Almak veya dikdörtgeninin sağ alt köşesini ayarlamak için bu işlevi kullanabilirsiniz.Köşe Atama işlecinin sol tarafındaki bu işlevi kullanarak ayarlayın.

Örnek

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

Gereksinimler

Başlık: atltypes.h

Ayrıca bkz.

Başvuru

CRect sınıfı

Hiyerarşi grafik

CRect::TopLeft

CPoint sınıfı

CRect::CenterPoint