Skip to content

Commit 9db7ea2

Browse files
committed
Attach ScrollBarEx to OutlineTree and update themes on FirstRun...
1 parent ff82541 commit 9db7ea2

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

External/Plugins/ASCompletion/PluginUI.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
using PluginCore.Helpers;
1919
using PluginCore.Localization;
2020
using PluginCore.Managers;
21+
using PluginCore.Controls;
2122

2223
namespace ASCompletion
2324
{
@@ -138,6 +139,7 @@ private void InitializeControls()
138139
outlineTree.ShowNodeToolTips = true;
139140
Controls.Add(outlineTree);
140141
outlineTree.BringToFront();
142+
ScrollBarEx.Attach(outlineTree);
141143
}
142144

143145
private void TreeIcons_Populate(object sender, EventArgs e)

External/Plugins/ASCompletion/Win32/FixedTreeView.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* - extends StateSavingTreeView
66
*/
77
using PluginCore;
8-
using System.Runtime.InteropServices;
8+
using System.Drawing;
99

1010
namespace System.Windows.Forms
1111
{
@@ -134,6 +134,17 @@ protected override void OnPaint(PaintEventArgs e)
134134
base.OnPaint(e);
135135
}
136136

137+
protected override void WndProc(ref Message message)
138+
{
139+
switch (message.Msg)
140+
{
141+
case 0xf: // WM_PAINT
142+
OnPaint(new PaintEventArgs(Graphics.FromHwnd(this.Handle), this.Bounds));
143+
break;
144+
}
145+
base.WndProc(ref message);
146+
}
147+
137148
}
138149

139150
}

FlashDevelop/Bin/Debug/FirstRun.fdb

684 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)