Fixed Issue 387. The new implementation does not try to start a ring 0 driver that already exists, but could not be opened. It tries to delete the driver and install it new. The driver is now stored temporarily in the application folder. The driver is not correctly removed on system shutdown.
2 using System.Collections.Generic;
4 using System.Windows.Forms;
5 using System.Security.Permissions;
8 namespace Aga.Controls.Tree
10 internal class ResizeColumnState: ColumnState
12 private Point _initLocation;
13 private int _initWidth;
15 public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
19 _initWidth = column.Width;
22 public override void KeyDown(KeyEventArgs args)
25 if (args.KeyCode == Keys.Escape)
29 public override void MouseDown(TreeNodeAdvMouseEventArgs args)
33 public override void MouseUp(TreeNodeAdvMouseEventArgs args)
38 private void FinishResize()
42 Tree.OnColumnWidthChanged(Column);
45 public override bool MouseMove(MouseEventArgs args)
47 Column.Width = _initWidth + args.Location.X - _initLocation.X;
52 public override void MouseDoubleClick(TreeNodeAdvMouseEventArgs args)
54 Tree.AutoSizeColumn(Column);