CRect::CenterPoint

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 OverviewClass MembersHierarchy Chart

See Also   CRect::Width, CRect::Height, CRect::Size, CRect::TopLeft, CRect::BottomRight, CRect::IsRectNull, CPoint