CRect::TopLeft

座標時,就會傳回至 CRect包含的 CPoint 物件的參考。

CPoint& TopLeft( ) throw( ); 
const CPoint& TopLeft( ) const throw( );

傳回值

矩形左上角的座標。

備註

您可以使用這個函式以取得或設定矩形的左上角。設定這個角落使用這個函式在指派運算子左方的。

範例

CRect::CenterPoint。請參閱範例。

需求

Header: atltypes.h

請參閱

參考

CRect 類別

階層架構圖

CRect::BottomRight

CPoint 類別

CRect::CenterPoint