Exemplo n.º 1
0
 internal static extern bool GetCursorPos(ref MainWindow.Win32Point pt);
Exemplo n.º 2
0
 public static Point GetMousePosition()
 {
     MainWindow.Win32Point pt = new MainWindow.Win32Point();
     MainWindow.GetCursorPos(ref pt);
     return(new Point((double)pt.X, (double)pt.Y));
 }