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); }
2022-08-04 09:51:59
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); }