CODGlobal::UnionRect

inline CRect CODGlobal::UnionRect(CRect rect1, CRect rect2)

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.