winform 控件 point 位置计算
2021-01-22 21:12
阅读:623
标签:rom native sys span http runtime hand href time winform 控件 point 位置计算 标签:rom native sys span http runtime hand href time 原文地址:https://www.cnblogs.com/upshania/p/12076290.htmlpublic 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);
}
评论
亲,登录后才可以留言!