CRect::TopLeft

Call this member function to obtain a reference to a CPoint object that represents the coordinates of the top left corner of a CRect object.

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.

Syntax

CPoint& TopLeft( );

const CPoint& TopLeft( ) const;

At a Glance

Header file: Afxwin.h
Platforms:
Versions: 1.0 and later
Complete documentation: Visual C++ documentation

See Also

CRect Overview, CRect Member Functions, Simple Value Types, CRect::BottomRight, CPoint