public static Point GetMousePosition()
        {
            POINT pt = new POINT();

            NativeMethods.GetCursorPos(out pt);
            return((Point)pt);
        }
Beispiel #2
0
        public static Point GetCursorPosition()
        {
            POINT point;

            if (NativeMethods.GetCursorPos(out point))
            {
                return((Point)point);
            }

            return(Point.Empty);
        }
Beispiel #3
0
        public static Point GetCursorPosition()
        {
            POINT point;

            if (NativeMethods.GetCursorPos(out point))
            {
                return(new Point(point.X, point.Y));
            }

            return(new Point());
        }