Depends on how you want to draw them.
Non Visual Styled Caption Buttons can be drawn via the ControlPaint class.
Visual Styled buttons need to drawn with Interop using OpenThemeData(),
DrawThemeBackground(), CloseThemeData(). The definitions are stored in the
header files 'uxtheme.h' and 'Tmschema.h' or you may find them on
www.pinvoke.net
There may be ways to draw Visual Styled buttons without Interop in VS2005,
but I can't confirm this as I don't have it.
--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Mark Ingram" <no****@nowhere.com> wrote in message
news:u3*************@tk2msftngp13.phx.gbl...
Mick Doherty wrote: "Mark Ingram" <no****@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi, ive got a form with FormBorderStyle set to None (i am using custom
regions to determine the shape of the form). But i would like to be able
to display the standard system menu when the user right clicks the
application in the taskbar. How can i do this?
The shaped form example on my site includes a Sytem Menu, you should be
able to extract what you need from it.
http://www.dotnetrix.co.uk/misc.html --> An example of a
moveable/resizable shaped form.
On your page you say:
"With a little InterOp you can draw a standard TitleBar onto which you can
place custom buttons, and this solution is much simpler than that of
OwnerDrawing the NonClient Area to achieve the same effect. "
How can i draw the minimise, maximise, close etc, buttons? Where are they
stored?