CRect::operator |

CRect operator |( const RECT& rect2 ) const;

Return Value

A CRect that is the union of CRect and rect2.

Parameters

rect2

Contains a RECT or CRect.

Remarks

Returns a CRect that is the union of CRect and rect2. The union is the smallest rectangle that contains both rectangles.

Note   Both of the rectangles must be normalized or this function may fail. You can call NormalizeRect to normalize the rectangles before calling this function.

CRect OverviewClass MembersHierarchy Chart

See Also   CRect::UnionRect, CRect::operator |=, CRect::operator &, CRect::NormalizeRect