System.Windows.Forms.ThemeWin32Classic.DrawStatusBarBackground C# (CSharp) Method

DrawStatusBarBackground() protected method

protected DrawStatusBarBackground ( Graphics dc, Rectangle clip, System.Windows.Forms.StatusBar sb ) : void
dc System.Drawing.Graphics
clip System.Drawing.Rectangle
sb System.Windows.Forms.StatusBar
return void
		protected virtual void DrawStatusBarBackground (Graphics dc, Rectangle clip, StatusBar sb)
		{
			bool is_color_control = sb.BackColor.ToArgb () == ColorControl.ToArgb ();

			Brush brush = is_color_control ? SystemBrushes.Control : ResPool.GetSolidBrush (sb.BackColor);
			dc.FillRectangle (brush, clip);
		}
ThemeWin32Classic