示例#1
0
 public Point PointToScreen(Point point)
 {
     point *= Scaling;
     var p = new UnmanagedMethods.POINT { X = (int)point.X, Y = (int)point.Y };
     UnmanagedMethods.ClientToScreen(_hwnd, ref p);
     return new Point(p.X, p.Y);
 }
示例#2
0
 private Point ScreenToClient(Point point)
 {
     var p = new UnmanagedMethods.POINT { X = (int)point.X, Y = (int)point.Y };
     UnmanagedMethods.ScreenToClient(_hwnd, ref p);
     return new Point(p.X, p.Y);
 }
示例#3
0
 public Point PointToClient(Point point)
 {
     var p = new UnmanagedMethods.POINT { X = (int)point.X, Y = (int)point.Y };
     UnmanagedMethods.ScreenToClient(_hwnd, ref p);
     return new Point(p.X, p.Y) / Scaling;
 }