CRect::TopLeft

This method obtains a reference to a CPoint object that represents the coordinates of the top left corner of a CRect object.

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

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

CRect::BottomRight, CPoint