Visual Studio 6Visual C++ 7.0Windows 2000Visual C++ 6.0Windows XPMFCIntermediateDevVisual StudioWindowsC++
XP-style Button Control






4.65/5 (20 votes)
Jul 29, 2002

556671

6445
XP style button control for all version of windows.
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 your resource editor, create a button and set the 'owner draw' property.
- Use
classwizard
to create aCButton
object in your dialog. - Include the "xpbutton.h" file in your dialog class file.
- Rename the
CButton
object type toCXPButton
. - Compile and enjoy.
History
- 7th August, 2002 - Updated download
License
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.