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

DrawButton() public method

public DrawButton ( Graphics g, Button b, Rectangle textBounds, Rectangle imageBounds, Rectangle clipRectangle ) : void
g System.Drawing.Graphics
b Button
textBounds System.Drawing.Rectangle
imageBounds System.Drawing.Rectangle
clipRectangle System.Drawing.Rectangle
return void
		public override void DrawButton (Graphics g, Button b, Rectangle textBounds, Rectangle imageBounds, Rectangle clipRectangle)
		{
			// Draw Button Background
			DrawButtonBackground (g, b, clipRectangle);

			// If we have an image, draw it
			if (imageBounds.Size != Size.Empty)
				DrawButtonImage (g, b, imageBounds);

			// If we're focused, draw a focus rectangle
			if (b.Focused && b.Enabled && b.ShowFocusCues)
				DrawButtonFocus (g, b);

			// If we have text, draw it
			if (textBounds != Rectangle.Empty)
				DrawButtonText (g, b, textBounds);
		}
ThemeWin32Classic