Important: The information in this document is obsolete and should not be used for new development.
UnionRect
To calculate the smallest rectangle that encloses two rectangles, use theUnionRectprocedure.
PROCEDURE UnionRect (src1,src2:\xDDRect; 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
TheUnionRectprocedure returns in thedstRectparameter the smallest rectangle that encloses both of the rectangles you specify in thesrc1andsrc2parameters. One of the source rectangles may also be the destination.