Here is an XP-style Button. It works on all windows OSs: 95/98/Me/NT/W2K/XP. No subclassing, etc. is needed to use this control - it's just a plain simple button control. This code is a modified form of the OCX code I recently saw on codeguru. The button code was for an ActiveX control. I created this
CButton derived class with latest Microsoft's sponsored CCP technology (Cut-Copy-Paste).
How to Use It?
- In your resource editor, create a button and set the 'owner draw' property.
classwizard to create a
CButton object in your dialog.
- Include the "xpbutton.h" file in your dialog class file.
- Rename the
CButton object type to
- Compile and enjoy.
- 7th August, 2002 - Updated download
This article has no explicit license attached to it, but may contain usage terms in the article text or the download files themselves. If in doubt, please contact the author via the discussion board below. A list of licenses authors might use can be found here.