ScreenToClient function user32

bool ScreenToClient(
  1. HWND hWnd,
  2. Pointer<POINT> lpPoint
)

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

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-screentoclient.

Implementation

@pragma('vm:prefer-inline')
bool ScreenToClient(HWND hWnd, Pointer<POINT> lpPoint) =>
    _ScreenToClient(hWnd, lpPoint) != FALSE;