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