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

DrawButtonBase() public method

public DrawButtonBase ( Graphics dc, Rectangle clip_area, ButtonBase button ) : void
dc System.Drawing.Graphics
clip_area System.Drawing.Rectangle
button ButtonBase
return void
		public override void DrawButtonBase(Graphics dc, Rectangle clip_area, ButtonBase button)
		{
			// Draw the button: Draw border, etc.
			ButtonBase_DrawButton(button, dc);

			// Draw the image
			if (button.FlatStyle != FlatStyle.System && ((button.image != null) || (button.image_list != null)))
				ButtonBase_DrawImage(button, dc);
			
			// Draw the focus rectangle
			if (ShouldPaintFocusRectagle (button))
				ButtonBase_DrawFocus(button, dc);
			
			// Now the text
			if (button.Text != null && button.Text != String.Empty)
				ButtonBase_DrawText(button, dc);
		}
ThemeWin32Classic