ClientToScreen() private method

private ClientToScreen ( HWND hWnd, System.Point &point ) : BOOL
hWnd HWND
point System.Point
return BOOL
Esempio n. 1
0
        public Point PointToScreen(Point point)
        {
            if (!Functions.ClientToScreen(window.Handle, ref point))
            {
                throw new InvalidOperationException(String.Format(
                                                        "Could not convert point {0} from screen to client coordinates. Windows error: {1}",
                                                        point.ToString(), Marshal.GetLastWin32Error()));
            }

            return(point);
        }