Gdi32GetClipBox(IntPtr, Rectangle) Method
Retrieves the dimensions of the tightest bounding rectangle that can be drawn around the current visible area on the device.
The visible area is defined by the current clipping region or clip path, as well as any overlapping windows.
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 ClipBoxComplexity GetClipBox(
IntPtr hdc,
ref Rectangle refRect
)
<DllImportAttribute("GDI32.dll", SetLastError := true>]
Public Shared Function GetClipBox (
hdc As IntPtr,
ByRef refRect As Rectangle
) As ClipBoxComplexity
Dim hdc As IntPtr
Dim refRect As Rectangle
Dim returnValue As ClipBoxComplexity
returnValue = Gdi32.GetClipBox(hdc,
refRect)
public:
[DllImportAttribute(L"GDI32.dll", SetLastError = true)]
static ClipBoxComplexity GetClipBox(
IntPtr hdc,
Rectangle% refRect
)
[<DllImportAttribute("GDI32.dll", SetLastError = true)>]
static member GetClipBox :
hdc : IntPtr *
refRect : Rectangle byref -> ClipBoxComplexity
No code example is currently available or this language may not be supported.
- hdc IntPtr
-
A handle to the device context.
- refRect Rectangle
-
A pointer to a Rectangle structure that is to receive the rectangle dimensions, in logical units.
ClipBoxComplexity
If the function succeeds, the return value specifies the clipping box's complexity.