From 87270387173d87cf57e934b259af53b2910de97e Mon Sep 17 00:00:00 2001 From: Sunny Date: Thu, 9 Jan 2025 20:44:27 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIForm:=20=E4=BF=AE=E5=A4=8D=E7=AA=97?= =?UTF-8?q?=E4=BD=93=E8=BE=B9=E6=A1=86=E6=98=BE=E7=A4=BA=E4=B8=8D=E5=85=A8?= =?UTF-8?q?=20#IBGJBS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Forms/UIForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index f1cc25b5..2a6bd246 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -61,6 +61,7 @@ * 2024-07-20: V3.6.8 修改为初始化最大化后恢复时界面尺寸大小正常 * 2024-07-26: V3.6.8 修复鼠标点击事件 * 2024-07-28: V3.6.8 最大化后,鼠标点击标题栏最上方,不恢复正常大小 + * 2025-01-09: V3.8.1 修复窗体边框显示不全 #IBGJBS ******************************************************************************/ using System; @@ -595,7 +596,7 @@ namespace Sunny.UI if (ControlBoxLeft != Width) { - e.Graphics.FillRectangle(TitleColor, new Rectangle(ControlBoxLeft, 1, Width, TitleHeight - 2)); + e.Graphics.FillRectangle(TitleColor, new Rectangle(ControlBoxLeft, 1, Width - ControlBoxLeft - 1, TitleHeight - 2)); } e.Graphics.SetHighQuality();