Gdi32GetRgnBox(IntPtr, NativeRectangle) Method

Retrieves the bounding rectangle of the specified region.

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("GDI32.dll", SetLastError = true)]
public static RegionComplexity GetRgnBox(
	IntPtr hRgn,
	out NativeRectangle refRect
)

Parameters

hRgn  IntPtr
A handle to the region.
refRect  NativeRectangle
A NativeRectangle structure that receives the bounding rectangle in logical units.

Return Value

RegionComplexity
The return value specifies the region's complexity.

If the hRgn parameter does not identify a valid region, the return value is Error.

Remarks

See Also