diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index 411c51a8..ac0941ad 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index 071b71e1..e7309de2 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index 502f69e7..a01c09b7 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI/Controls/UINavMenu.cs b/SunnyUI/Controls/UINavMenu.cs index b8badbde..4941a8dd 100644 --- a/SunnyUI/Controls/UINavMenu.cs +++ b/SunnyUI/Controls/UINavMenu.cs @@ -21,7 +21,6 @@ * 2020-03-12: V3.0.2 增加设置二级菜单底色 ******************************************************************************/ -using Sunny.UI.Win32; using System; using System.Collections.Concurrent; using System.ComponentModel; @@ -786,17 +785,9 @@ namespace Sunny.UI protected override void WndProc(ref Message m) { + base.WndProc(ref m); if (IsDisposed || Disposing) return; - - switch (m.Msg) - { - case User.WM_ERASEBKGND: - Win32.User.ShowScrollBar(Handle, 3, false); - break; - default: - base.WndProc(ref m); - break; - } + Win32.User.ShowScrollBar(Handle, 3, false); } public TreeNode CreateNode(string text, int pageIndex)