UnionRect
To calculate the smallest rectangle that encloses two rectangles, use the UnionRect procedure.
PROCEDURE UnionRect (src1,src2:�Rect; VAR dstRect: Rect);
src1
- The first of two rectangles to enclose.
src2
- The second of two rectangles to enclose.
dstRect
- The rectangle that encloses them.
DESCRIPTION
The UnionRect procedure returns in the dstRect parameter the smallest rectangle that encloses both of the rectangles you specify in the src1 and src2 parameters. One of the source rectangles may also be the destination.