Draws the specified caption button control in the specified state, on the specified graphics surface, and within the specified bounds.
- graphics
The System.Drawing.Graphics to draw on.
- x
The x-coordinate of the top left of the drawing rectangle.
- y
The y-coordinate of the top left of the drawing rectangle.
- width
The width of the drawing rectangle.
- height
The height of the drawing rectangle.
- button
One of the System.Windows.Forms.CaptionButton values that specifies the type of caption button to draw.
- state
A bitwise combination of the System.Windows.Forms.ButtonState values that specifies the state to draw the button in.