Пример #1
0
        Point ClientToScreen(SystemWindow systemWindow, Point clientPoint)
        {
            POINT point = clientPoint.ToPOINT();

            int result = NativeMethods.MapWindowPoints(systemWindow.HWnd, IntPtr.Zero, ref point, 1);

            //if (result == 0)
            //    throw new Exception("could not get client coordinates");
            return(point.ToPoint());
        }