!32 修正有分屏后,UIForm调整窗体大小时鼠标显示左右箭头问题

Merge pull request !32 from 木-易-杨/master
This commit is contained in:
Sunny 2020-12-13 21:33:39 +08:00 committed by Gitee
commit fc32d99f90

View File

@ -1,4 +1,4 @@
/****************************************************************************** /******************************************************************************
* SunnyUI * SunnyUI
* CopyRight (C) 2012-2020 ShenYongHua(). * CopyRight (C) 2012-2020 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@qq.com * QQ群56829229 QQ17612584 EMailSunnyUI@qq.com
@ -1245,7 +1245,8 @@ namespace Sunny.UI
if (m.Msg == Win32.User.WM_NCHITTEST && ShowDragStretch && WindowState == FormWindowState.Normal) 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); vPoint = PointToClient(vPoint);
int dragSize = 5; int dragSize = 5;
if (vPoint.X <= dragSize) if (vPoint.X <= dragSize)