
Introduction
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 you resource editor create a button and set the 'owner draw' property.
- Use 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 CXPButton.
- Compile and enjoy.
Please visit My Web Site for more
tutorials, tweaks, reference.
History
7 Aug 2002 - updated download