Skip to content

Latest commit

 

History

History
106 lines (72 loc) · 3.15 KB

nf-winuser-unionrect.md

File metadata and controls

106 lines (72 loc) · 3.15 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winuser.UnionRect
UnionRect function (winuser.h)
The UnionRect function creates the union of two rectangles. The union is the smallest rectangle that contains both source rectangles.
UnionRect
UnionRect function [Windows GDI]
_win32_UnionRect
gdi.unionrect
winuser/UnionRect
gdi\unionrect.htm
gdi
f2da2df4-3f09-4c54-afd1-c728805f0f64
12/05/2018
UnionRect, UnionRect function [Windows GDI], _win32_UnionRect, gdi.unionrect, winuser/UnionRect
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
User32.lib
User32.dll
Windows
19H1
UnionRect
winuser/UnionRect
c++
APIRef
kbSyntax
DllExport
user32.dll
API-MS-Win-NTUser-Rectangle-l1-1-0.dll
minuser.dll
Ext-MS-Win-NTUser-Rectangle-Ext-l1-1-0.dll
UnionRect

UnionRect function

-description

The UnionRect function creates the union of two rectangles. The union is the smallest rectangle that contains both source rectangles.

-parameters

-param lprcDst [out]

A pointer to the RECT structure that will receive a rectangle containing the rectangles pointed to by the lprcSrc1 and lprcSrc2 parameters.

-param lprcSrc1 [in]

A pointer to the RECT structure that contains the first source rectangle.

-param lprcSrc2 [in]

A pointer to the RECT structure that contains the second source rectangle.

-returns

If the specified structure contains a nonempty rectangle, the return value is nonzero.

If the specified structure does not contain a nonempty rectangle, the return value is zero.

-remarks

The system ignores the dimensions of an empty rectangle that is, a rectangle in which all coordinates are set to zero, so that it has no height or no width.

Because applications can use rectangles for different purposes, the rectangle functions do not use an explicit unit of measure. Instead, all rectangle coordinates and dimensions are given in signed, logical values. The mapping mode and the function in which the rectangle is used determine the units of measure.

-see-also

InflateRect

IntersectRect

OffsetRect

RECT

Rectangle Functions

Rectangles Overview