User32ScreenToClient(SafeHandle, Point) Method

Converts the screen coordinates of a specified point on the screen to client-area coordinates.

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("User32.dll")]
public static bool ScreenToClient(
	SafeHandle hWnd,
	ref Point refPoint
)

Parameters

hWnd  SafeHandle
A handle To the window whose client area will be used For the conversion.
refPoint  Point
A pointer to a NativePoint structure that specifies the screen coordinates to be converted.

The new screen coordinates are copied into this structure if the function succeeds.

Return Value

Boolean
If the function succeeds, the return value is .

If the function fails, the return value is .

Remarks

See Also