Gdi32GetRgnBox(IntPtr, Rectangle) Method
Retrieves the bounding rectangle of the specified region.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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 Rectangle refRect
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function GetRgnBox (
hRgn As IntPtr,
<OutAttribute> ByRef refRect As Rectangle
) As RegionComplexity
Dim hRgn As IntPtr
Dim refRect As Rectangle
Dim returnValue As RegionComplexity
returnValue = Gdi32.GetRgnBox(hRgn,
refRect)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static RegionComplexity GetRgnBox(
IntPtr hRgn,
[OutAttribute] Rectangle% refRect
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member GetRgnBox :
hRgn : IntPtr *
refRect : Rectangle byref -> RegionComplexity
No code example is currently available or this language may not be supported.
- hRgn IntPtr
-
A handle to the region.
- refRect Rectangle
-
A Rectangle structure that receives the bounding rectangle in logical units.
RegionComplexity
The return value specifies the region's complexity.
If the
hRgn parameter does not identify a valid region, the return value is
Error.