CODGlobal::UnionRect

inline CRectCODGlobal::UnionRect(CRectrect1, CRectrect2)

Creates a rectangle equal to the union of the two source rectangles. The union is the smallest rectangle that contains both source rectangles.

Defined in: OdGlobal.h

Return Value

The union of the two rectangles.

Parameters

rect1

The first rectangle to combine.

rect2

The second rectangle to combine.

Comments

The MFC method CRect::UnionRect ignores source rectangles which have a zero width or height. This version will still use those values.