NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlPaint.DrawCaptionButton (Graphics, Rectangle, CaptionButton, ButtonState)

Draws a Win32 window caption button in the given rectangle with the given state.

[Visual Basic]
Overloads Public Shared Sub DrawCaptionButton( _
   ByVal graphics As Graphics, _
   ByVal rect As Rectangle, _
   ByVal button As CaptionButton, _
   ByVal state As ButtonState _
)
[C#]
public static void DrawCaptionButton(
   Graphics graphics,
   Rectangle rect,
   CaptionButton button,
   ButtonState state
);
[C++]
public: static void DrawCaptionButton(
   Graphics* graphics,
   Rectangle rect,
   CaptionButton button,
   ButtonState state
);
[JScript]
public static function DrawCaptionButton(
   graphics : Graphics,
   rect : Rectangle,
   button : CaptionButton,
   state : ButtonState
);

Parameters

graphics
The graphics object to draw to.
rect
The coordiniates of the button to draw.
button
A CaptionButton enum value that determines the caption button to draw.
state
One or more ButtonState flags that determine how to draw the button.

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace | ControlPaint.DrawCaptionButton Overload List | CaptionButton | ButtonState