Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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