ClientToScreen() 개인적인 메소드

private ClientToScreen ( HWND hWnd, System.Point &point ) : BOOL
hWnd HWND
point System.Point
리턴 BOOL
예제 #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);
        }