* UINavMenu:更改一個消息事件

This commit is contained in:
Sunny 2021-05-07 21:50:19 +08:00
parent 5ddbfebee9
commit 2b98467b59
6 changed files with 13 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -21,6 +21,7 @@
* 2020-03-12: V3.0.2
******************************************************************************/
using Sunny.UI.Win32;
using System;
using System.Collections.Concurrent;
using System.ComponentModel;
@ -785,9 +786,17 @@ 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;
}
}
public TreeNode CreateNode(string text, int pageIndex)

View File

@ -114,10 +114,10 @@ namespace Sunny.UI
}
}
protected override void OnClick(EventArgs e)
protected override void OnMouseDoubleClick(MouseEventArgs e)
{
timer.Enabled = !timer.Enabled;
base.OnClick(e);
base.OnMouseDoubleClick(e);
}
protected override void OnPaintFore(Graphics g, GraphicsPath path)