Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WinUnionRect (1.2)
◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINRECTANGLES
BOOL WinUnionRect(hab, prclDst, prclSrc1, prclSrc2)
HAB hab; /* handle of the anchor block */
PRECTL prclDst; /* address of the destination rectangle structure */
PRECTL prclSrc1; /* address of the first rectangle structure */
PRECTL prclSrc2; /* address of the second rectangle structure */
The WinUnionRect function calculates a rectangle that bounds the two source
rectangles.
Parameter Description
────────────────────────────────────────────────────────────────────────────
hab Identifies an anchor block.
prclDst Points to a RECTL structure that will receive a rectangle
bounding the rectangles pointed to by the prclSrc1 and prclSrc2
parameters.
prclSrc1 Points to a RECTL structure that contains the first source
rectangle.
prclSrc2 Points to a RECTL structure that contains the second source
rectangle.
Return Value
The return value is TRUE if prclDst is a nonempty rectangle. Otherwise, it
is FALSE, indicating that an error occurred or that the prclDst rectangle is
empty. If one of the source rectangles is NULL, the other is returned.
See Also
WinIntersectRect, WinSubtractRect, RECTL
♦