Andwho.Windows.Forms.QQTabControl.DrawBackground C# (CSharp) Метод

DrawBackground() приватный Метод

绘制背景
private DrawBackground ( Graphics g ) : void
g System.Drawing.Graphics
Результат void
        private void DrawBackground(Graphics g)
        {
            int width = this.ClientRectangle.Width;
            int height = this.ClientRectangle.Height - this.DisplayRectangle.Height;
            Color backColor = this.Enabled ? this._backColor : SystemColors.Control;
            using (SolidBrush brush = new SolidBrush(backColor))
            {
                g.FillRectangle(brush, this.ClientRectangle);
            }
            Rectangle bgRect = new Rectangle(2, 2, this.Width - 2, this.ItemSize.Height);
            this.DrawImage(g, this._titleBackground, bgRect);//绘制背景图
        }