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

DrawPopupButton() public method

public DrawPopupButton ( 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 DrawPopupButton (Graphics g, Button b, Rectangle textBounds, Rectangle imageBounds, Rectangle clipRectangle)
		{
			// Draw Button Background
			DrawPopupButtonBackground (g, b, clipRectangle);

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

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

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