示例#1
0
 public static void ScreenToClient(IntPtr hwnd, ref int x, ref int y)
 {
     User.Struct.POINT point = new User.Struct.POINT();
     point.x = x;
     point.y = y;
     Win32.User.ScreenToClient(hwnd, ref point);
     x = point.x;
     y = point.y;
 }
示例#2
0
文件: Windows.cs 项目: 24/source_04
 public static void GetScreenCoordinates(IntPtr HwndPtr, ref int x, ref int y)
 {
     User.Struct.POINT point = new User.Struct.POINT();
     point.x = x;
     point.y = y;
     Win32.User.ClientToScreen(HwndPtr, ref point);
     x = point.x;
     y = point.y;
 }
示例#3
0
文件: Windows.cs 项目: labeuze/source
 public static void GetScreenCoordinates(IntPtr HwndPtr, ref int x, ref int y)
 {
     User.Struct.POINT point = new User.Struct.POINT();
     point.x = x;
     point.y = y;
     Win32.User.ClientToScreen(HwndPtr, ref point);
     x = point.x;
     y = point.y;
 }
示例#4
0
 public static void ScreenToClient(IntPtr hwnd, ref int x, ref int y)
 {
     User.Struct.POINT point = new User.Struct.POINT();
     point.x = x;
     point.y = y;
     Win32.User.ScreenToClient(hwnd, ref point);
     x = point.x;
     y = point.y;
 }