المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Toolbar-like custom draw buttons



C++ Programming
07-11-2009, 12:11 AM
I've been reading a couple of articles here about using custom draw to get XP and Vista themed buttons containing a bitmap, such as

Vista themed Owner-Drawn and Full-Custom Push/Menu/Image Buttons (http://www.codeproject.com/KB/vista/vistathemebuttons.aspx)[^ (http://www.codeproject.com/KB/vista/vistathemebuttons.aspx)]

But I would prefer my buttons to look like toolbar buttons - i.e. by default look flat and without an outline, look slightly curved and with an outline when the cursor is hovered over it, and look pushed-in with a drop shadow when clicked.

Is there a simple way to get a CButton to look like this (not on a toolbar)?