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.

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 ClipBoxComplexity GetClipBox(
	IntPtr hdc,
	ref Rectangle refRect
)

Parameters

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.

Return Value

ClipBoxComplexity
If the function succeeds, the return value specifies the clipping box's complexity.

Remarks

See Also