Gdi32PtVisible(SafeHandle, Int32, Int32) Method

Determines whether the specified point is 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 PtVisible(
	SafeHandle hdc,
	int x,
	int y
)

Parameters

hdc  SafeHandle
A handle to the device context (DC).
x  Int32
The x-coordinate, in logical units, of the point.
y  Int32
The y-coordinate, in logical units, of the point.

Return Value

Int32
If the specified point is within the clipping region of the device context, the return value is 1.

If the specified point is not within the clipping region of the device context, the return value is 0.

If the HDC is not valid, the return value is -1.

Remarks

See Also