Share via


CRect::TopLeft

The coordinates are returned as a reference to a CPoint object that is contained in CRect.

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

Return Value

The coordinates of the top-left corner of the rectangle.

Remarks

You can use this function to either get or set the top-left corner of the rectangle. Set the corner by using this function on the left side of the assignment operator.

Example

See the example for CRect::CenterPoint.

Requirements

Header: atltypes.h

See Also

Reference

CRect Class

Hierarchy Chart

CRect::BottomRight

CPoint Class

CRect::CenterPoint