From fd0fcef428413e2e22c226116eec03553f927106 Mon Sep 17 00:00:00 2001 From: H Date: Wed, 30 Sep 2020 22:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=AA=97=E4=BD=93=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E5=9C=A8=E7=AA=97=E4=BD=93=E6=8B=96=E5=8A=A8=E5=8F=98?= =?UTF-8?q?=E5=8C=96=E6=97=B6=E9=97=AA=E7=83=81=E7=9A=84=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 +++++ SunnyUI/Pages/UIPage.cs | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index 555ddad2..a77fe487 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -1321,6 +1321,11 @@ namespace Sunny.UI ShowRadius = false; Padding = new Padding(2, showTitle ? TitleHeight : 2, 2, 2); } + else + { + ShowRect = false; + Padding = new Padding(0, showTitle ? TitleHeight : 0, 0, 0); + } } } diff --git a/SunnyUI/Pages/UIPage.cs b/SunnyUI/Pages/UIPage.cs index 38caf76f..f62ee0e9 100644 --- a/SunnyUI/Pages/UIPage.cs +++ b/SunnyUI/Pages/UIPage.cs @@ -316,5 +316,15 @@ namespace Sunny.UI { //SetStyle(UIStyles.Style); } + + protected override CreateParams CreateParams + { + get + { + CreateParams cp = base.CreateParams; + cp.ExStyle |= 0x02000000; + return cp; + } + } } } \ No newline at end of file