Zoli wrote:
> Is there a way to draw my own buttons? Push buttons, toolbar buttons,
> maybe a sliding control too (like brightness adjustment in an image
> processing program, for example).
I can answer for PushButtons. The others probably have something similar,
but you'll have to check the MSDN documentation. For PushButtons, by
specifying a BS_OWNERDRAW button style, you tell Windows that you're
going to take care of the drawing of the button yourself. This includes
the different looks when selected or when it has focus.
See
http://www.shoshana.com/downloads/ST%20DrawnPushButton.pacfor a small package that does this by subclassing PushButton. It's lofty
goal is simply to allow rendering of PushButtons with a backcolor other
than gray.
Hopefully that should get you started,
-Bill
-------------------------------------------
Bill Dargel
[hidden email]
Shoshana Technologies
100 West Joy Road, Ann Arbor, MI 48105 USA