AdvancedLauncher.Tools.Extensions.HwndSourceExtensions.TransformClientToScreen C# (CSharp) Метод

TransformClientToScreen() публичный статический Метод

Transform a point from "client" coordinate space of a window into the "screen" coordinate space.
public static TransformClientToScreen ( this hwndSource, Point point ) : Point
hwndSource this
point System.Windows.Point
Результат System.Windows.Point
        public static Point TransformClientToScreen(this HwndSource hwndSource, Point point)
        {
            HWND hwnd = new HWND(hwndSource.Handle);

            POINT pt = new POINT();
            pt.x = (int)point.X;
            pt.y = (int)point.Y;

            NativeMethods.ClientToScreen(hwnd, ref pt);

            return new Point(pt.x, pt.y);
        }