Gdi32RectVisible(SafeHandle, NativeRectangle) Method

Determines whether any part of the specified rectangle lies within the clipping region of a device context.

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 int RectVisible(
	SafeHandle hdc,
	in NativeRectangle refRect
)

Parameters

hdc  SafeHandle
A handle to the device context (DC).
refRect  NativeRectangle
A pointer to a NativeRectangle structure that contains the logical coordinates of the specified rectangle.

Return Value

Int32
If the current transform does not have a rotation and the rectangle lies within the clipping region, the return value is 1.

If the current transform does not have a rotation and the rectangle does not lie within the clipping region, the return value is 0.

If the current transform has a rotation and the rectangle lies within the clipping region, the return value is 2.

If the current transform has a rotation and the rectangle does not lie within the clipping region, the return value is 1.

Remarks

See Also