⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imtoolstrip.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.BizControls
{
    using System;
    using System.Drawing;
    using System.Windows.Forms;

    public class IMToolstrip : ToolStrip
    {
        private bool _showBackGroundImage;
        private static IMToolStripStyle style = new IMToolStripStyle();

        public IMToolstrip()
        {
            base.set_Renderer(new IMToolBarRenderer(this));
            base.StyleChanged += new EventHandler(this.IMToolstrip_StyleChanged);
        }

        private void IMToolstrip_StyleChanged(object sender, EventArgs e)
        {
            base.Invalidate(true);
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            e.Graphics.DrawLine(new Pen(Color.FromArgb(0xa4, 170, 220)), new Point(0, 0), new Point(base.Width, 0));
        }

        public override Image BackgroundImage
        {
            get
            {
                try
                {
                    if ((this.ShowBackGroundImage && Style.UseTheme) && (Style.BackgroundImage != null))
                    {
                        return Style.BackgroundImage;
                    }
                    return base.BackgroundImage;
                }
                catch
                {
                    return null;
                }
            }
            set
            {
                base.BackgroundImage = value;
                Style.BackgroundImage = value;
            }
        }

        public bool ShowBackGroundImage
        {
            get
            {
                return this._showBackGroundImage;
            }
            set
            {
                this._showBackGroundImage = value;
            }
        }

        public static IMToolStripStyle Style
        {
            get
            {
                return style;
            }
            set
            {
                style = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -