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.
- rectangle
The System.Drawing.Rectangle that represents the dimensions of the caption button.
- 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.