* UIPage: 修复OnMouseMove事件

This commit is contained in:
Sunny 2021-07-26 11:45:06 +08:00
parent 7dba088052
commit c2373ab227
5 changed files with 4 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -368,6 +368,8 @@ namespace Sunny.UI
protected override void OnMouseClick(MouseEventArgs e)
{
base.OnMouseClick(e);
if (FormBorderStyle == FormBorderStyle.None && ShowTitle)
{
if (InControlBox)
@ -470,6 +472,8 @@ namespace Sunny.UI
protected override void OnMouseMove(MouseEventArgs e)
{
base.OnMouseMove(e);
if (ShowTitle && ControlBox)
{
bool inControlBox = e.Location.InRect(ControlBoxRect);