CPoint CenterPoint( ) const;
Return Value
A CPoint object that is the centerpoint of CRect.
Remarks
Calculates the centerpoint of CRect by adding the left and right values and dividing by two, and adding the top and bottom values and dividing by two.
CRect Overview | Class Members | Hierarchy Chart
See Also CRect::Width, CRect::Height, CRect::Size, CRect::TopLeft, CRect::BottomRight, CRect::IsRectNull, CPoint