public System.Drawing.Point PointToClient(System.Drawing.Point point) { POINT p = new POINT { x = point.X, y = point.Y }; User32.ScreenToClient(_hWnd, ref p); return new System.Drawing.Point(p.x, p.y); }
public static extern bool ScreenToClient(IntPtr hWnd, ref POINT lpPoint);