public Point PointToScreen(Point p) { NativeMethods.POINT pt = new NativeMethods.POINT(p.X, p.Y); UnsafeNativeMethods.MapWindowPoints(new HandleRef(this, this.Handle), NativeMethods.NullHandleRef, pt, 1); return new Point(pt.x, pt.y); }
原文地址:https://www.cnblogs.com/upshania/p/12076290.html
时间: 2024-11-10 05:29:22