Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public static extern bool ScreenToClient(IntPtr hWnd, ref POINT lpPoint);