User32UnionRect(NativeRectangle, NativeRectangle, NativeRectangle) Method

Creates the union of two rectangles. The union is the smallest rectangle that contains both source rectangles.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", SetLastError = true)]
public static bool UnionRect(
	ref NativeRectangle refDstRect,
	ref NativeRectangle refSrcRect1,
	ref NativeRectangle refSrcRect2
)

Parameters

refDstRect  NativeRectangle
A NativeRectangle that will receive a rectangle containing the rectangles pointed to by the refSrcRect1 and refSrcRect2 parameters.
refSrcRect1  NativeRectangle
A NativeRectangle that contains the first source rectangle.
refSrcRect2  NativeRectangle
A NativeRectangle that contains the second source rectangle.

Return Value

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

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

To get extended error information, call GetLastWin32Error.

Remarks

See Also