Beispiel #1
0
        public VistaMenuControl() : base()
        {
            // designer call:
            InitializeComponent();

            // control styles:
            this.SetStyle(ControlStyles.AllPaintingInWmPaint |
                          ControlStyles.DoubleBuffer |
                          ControlStyles.SupportsTransparentBackColor |
                          ControlStyles.ResizeRedraw |
                          ControlStyles.UserPaint, true);

            this.items = new VistaMenuItems(this);
        }
Beispiel #2
0
        public VistaMenuControl()
            : base()
        {
            // designer call:
            InitializeComponent();

            // control styles:
            this.SetStyle(ControlStyles.AllPaintingInWmPaint |
                ControlStyles.DoubleBuffer |
                ControlStyles.SupportsTransparentBackColor |
                ControlStyles.ResizeRedraw |
                ControlStyles.UserPaint, true);

            this.items = new VistaMenuItems(this);
        }