From cf2b88d589f2eb91a0fe99d37b9da7a850ec82e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8-=E6=98=93-=E6=9D=A8?= <64038497@qq.com> Date: Sat, 12 Dec 2020 23:12:42 +0800 Subject: [PATCH 1/2] update SunnyUI/Forms/UIForm.cs. --- SunnyUI/Forms/UIForm.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index da95abf2..24e8adb8 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -1,4 +1,4 @@ -/****************************************************************************** +/****************************************************************************** * SunnyUI 开源控件库、工具类库、扩展类库、多页面开发框架。 * CopyRight (C) 2012-2020 ShenYongHua(沈永华). * QQ群:56829229 QQ:17612584 EMail:SunnyUI@qq.com @@ -1245,7 +1245,9 @@ namespace Sunny.UI if (m.Msg == Win32.User.WM_NCHITTEST && ShowDragStretch && WindowState == FormWindowState.Normal) { - Point vPoint = new Point((int)m.LParam & 0xFFFF, (int)m.LParam >> 16 & 0xFFFF); + //Point vPoint = new Point((int)m.LParam & 0xFFFF, (int)m.LParam >> 16 & 0xFFFF); + //修正有分屏后,调整窗体大小时鼠标显示左右箭头问题 + Point vPoint = new Point(MousePosition.X, MousePosition.Y); vPoint = PointToClient(vPoint); int dragSize = 5; if (vPoint.X <= dragSize) From 3dc3a2988ce000dbd903771c590c533c0f75c2e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8-=E6=98=93-=E6=9D=A8?= <64038497@qq.com> Date: Sat, 12 Dec 2020 23:14:00 +0800 Subject: [PATCH 2/2] =?UTF-8?q?update=20SunnyUI/Forms/UIForm.cs.=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=89=E5=88=86=E5=B1=8F=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AA=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E6=97=B6?= =?UTF-8?q?=E9=BC=A0=E6=A0=87=E6=98=BE=E7=A4=BA=E5=B7=A6=E5=8F=B3=E7=AE=AD?= =?UTF-8?q?=E5=A4=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Forms/UIForm.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index 24e8adb8..7bddc9e4 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -1245,9 +1245,8 @@ namespace Sunny.UI if (m.Msg == Win32.User.WM_NCHITTEST && ShowDragStretch && WindowState == FormWindowState.Normal) { - //Point vPoint = new Point((int)m.LParam & 0xFFFF, (int)m.LParam >> 16 & 0xFFFF); - //修正有分屏后,调整窗体大小时鼠标显示左右箭头问题 - Point vPoint = new Point(MousePosition.X, MousePosition.Y); + //Point vPoint = new Point((int)m.LParam & 0xFFFF, (int)m.LParam >> 16 & 0xFFFF); + Point vPoint = new Point(MousePosition.X, MousePosition.Y);//修正有分屏后,调整窗体大小时鼠标显示左右箭头问题 vPoint = PointToClient(vPoint); int dragSize = 5; if (vPoint.X <= dragSize)