ComponentFactory.Krypton.Toolkit.KryptonTreeView.InternalTreeView.InternalTreeView C# (CSharp) Method

InternalTreeView() public method

Initialize a new instance of the InternalTreeView class.
public InternalTreeView ( KryptonTreeView kryptonTreeView ) : System
kryptonTreeView KryptonTreeView Reference to owning control.
return System
            public InternalTreeView(KryptonTreeView kryptonTreeView)
            {
                SetStyle(ControlStyles.ResizeRedraw, true);

                _kryptonTreeView = kryptonTreeView;

                // Create manager and view for drawing the background
                _drawPanel = new ViewDrawPanel();
                _viewManager = new ViewManager(this, _drawPanel);

                // Set required properties to act as an owner draw list box
                base.Size = Size.Empty;
                base.BorderStyle = BorderStyle.None;

                // We need to create and cache a device context compatible with the display
                _screenDC = PI.CreateCompatibleDC(IntPtr.Zero);
            }