* UINavMenu:更改一個消息事件
This commit is contained in:
parent
5ddbfebee9
commit
2b98467b59
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -21,6 +21,7 @@
|
|||||||
* 2020-03-12: V3.0.2 增加设置二级菜单底色
|
* 2020-03-12: V3.0.2 增加设置二级菜单底色
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
using Sunny.UI.Win32;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@ -785,9 +786,17 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
protected override void WndProc(ref Message m)
|
protected override void WndProc(ref Message m)
|
||||||
{
|
{
|
||||||
base.WndProc(ref m);
|
|
||||||
if (IsDisposed || Disposing) return;
|
if (IsDisposed || Disposing) return;
|
||||||
Win32.User.ShowScrollBar(Handle, 3, false);
|
|
||||||
|
switch (m.Msg)
|
||||||
|
{
|
||||||
|
case User.WM_ERASEBKGND:
|
||||||
|
Win32.User.ShowScrollBar(Handle, 3, false);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
base.WndProc(ref m);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public TreeNode CreateNode(string text, int pageIndex)
|
public TreeNode CreateNode(string text, int pageIndex)
|
||||||
|
@ -114,10 +114,10 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnClick(EventArgs e)
|
protected override void OnMouseDoubleClick(MouseEventArgs e)
|
||||||
{
|
{
|
||||||
timer.Enabled = !timer.Enabled;
|
timer.Enabled = !timer.Enabled;
|
||||||
base.OnClick(e);
|
base.OnMouseDoubleClick(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnPaintFore(Graphics g, GraphicsPath path)
|
protected override void OnPaintFore(Graphics g, GraphicsPath path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user