4,631,907 members and growing!   11,840 now online.
Email Password Password problem?




Search    
Advanced Search
Sitemap
All Topics, MFC/C++ >> Button Controls
MFC Button Control articles

Contents
   • Beginners    • General
   • Non-rectangular Buttons    • Owner-draw buttons
   • Purgatory    • Unedited Reader Contributions
Beginners
Title / Updated Author Score
Using button controls in an application
23 Aug 2000 Beginner
How to get a button control wired-in and working

VC 4-6, Win95-98, NT4, W2K, MFC
Chris Smith 4.17
Dynamic buttons function call: alternative of BEGIN_MESSAGE_MAP
21 Jun 2007
This article discusses a trick to define/re-define a dynamic button for it's click

C++; Windows; Win32, VS, MFC; Dev
Sumit Kapoor 3.11
 
General
Title / Updated Author Score
Creating an ActiveX button from a MFC owner-draw button
26 Apr 2002 Beginner
Basic steps to transform a MFC button in an activex control

VC6, XP, W2K, Win9X, Win95, MFC
Davide Pizzolato 4.73
CBrowseCtrl - Adding File/Folder-Browse Features to Your Projects Easily
26 May 2004
A file/folder browsing control that integrates an editbox and a button with built-in images.

VC7.1, VC7, VC6, XP, W2K, Win2003, Win9X, MFC
=[ Abin ]= 4.6
GroupControl
21 Feb 2005
CButton-derived control to help with using groups.

VC7, VC6, XP, W2K, Win9X, Win95, NT4, MFC
Paul S. Vickery 4.57
CRoundButton2 - A fancy graphical button
29 Sep 2005
A self drawing, round button for different styles and usages.

C++ (VC7, VC6); Windows (Win2K, WinXP, Win98); Win32, VS (VS6, VS.NET2002, VS.NET2003), MFC, GDI; De
JtR1977 4.55
CHyperLink: a simple MFC HyperLink button class with any size 32bpp icons support
3 May 2007
A class which encapsulates a hyperlink control for web page redirection or normal button usage.

C++ (VC5, VC6); Windows (NT4, Win95, Win98); Win32, VS (VS5, VS6), MFC; Dev
Gladstone 4.45
CImageButtonWithStyle - Buttons using Images with XP Visual Styles
24 Nov 2005
How to get buttons using an icon or bitmap to use XP visual styles.

C++ (VC7); Windows (Win95, Win98, NT4, Win2K, WinXP); Win32, VS, MFC; Dev
Stephen C. Steel 4.35
CHoverButton - A simple hoverbutton with one bitmap and a tooltip
13 Oct 2000
A simple drop-in class that provides a 'hot' look button using the _TrackMouseEvent function

VC 4-6, Win95-98, NT4, W2K, MFC
Niek Albers 4.32
XP Media Center Animated Button Control
27 Sep 2006
Drop-in animated button class that emulates the XP Media Center 2005 buttons.

C++ (VC6); Windows (Win2K, WinXP); Win32, VS, MFC; Dev
JJMatthews 4.29
XGlyphButton - a simple image button control
10 Mar 2004
XGlyphButton is a simple CButton-based control that allows you to display an image without the need for owner-draw control.

VC6, XP, W2K, Win2003, Win9X, MFC
Hans Dietrich 4.29
CURLLinkButton - Customizable Hyperlink Control
20 Jul 2004
A CButton-derived hyperlink control that contains a built-in ToolTip

C++ (VC6); Windows; Win32, VS, MFC; Dev
DucThanh 4.24
CCaptionButton (buttons for the titlebar)
14 Jun 2004
Bitmap - buttons for the Titlebar

VC6, XP, NT4, MFC
Thomas Latuske 4.22
An unclickable button
31 May 2002
What looks like a normal pushbutton - until the user tries to click on it.

VC7, VC6, XP, W2K, Win9X, MFC
Chris Maunder 4.21
CRegionButton - A multidirectional button
18 May 2004
A class for making a button appear as though it has many regions.

VC6, W2K, MFC
DavidCrow 4.1
A Better Bitmap Button Class
15 Oct 2001
An improvement on the CBitmapButton class.

VC6, Win9x, NT4, MFC
Joseph M. Newcomer 4.06
An AutoRepeat Button Class
15 Apr 2002
A button control that autorepeats after a set period of time

VC7, VC6, XP, W2K, Win9X, MFC
Joseph M. Newcomer 4.06
XP Style CBitmapButton (CHoverBitmapButton)
23 Feb 2003
Style and theme aware bitmaps, give your old apps a new look under Windows XP.

VC7, XP, W2K, Win9X, MFC
Rail Jon Rogut 4.03
CGroupCheck - Checkbox associated with a groupbox
17 Aug 2002
CButton-derived control associated with a groupbox to enable/disable controls inside

VC6, XP, W2K, Win9X, Win95, NT4, MFC
Ming Liu 4
Getting BN_DOUBLECLICK to work for buttons
26 Jun 2002
BN_DOUBLECLICKED doesn't get received

VC7, VC6, XP, W2K, Win9X, Win95, NT4, MFC
Roger Allen 4
Native Win32 Theme aware Owner-draw Controls without MFC
15 Dec 2002
How to apply themes to owner draw controls in a native Win32 project

VC6
Ewan Ward 3.9
CCheckSK - An Extended Check-box class
20 Aug 2003
This article discusses the CCheckSK class that extends CButton MFC and can be used to create check boxes that look like LEDs.

VC6, XP, W2K, Win2003, Win9X, MFC
abhinaba 3.8
CColorBox
4 Aug 2004
A very simple button that shows a color and lets the user change it by clicking on the button.

C++ (VC7, VC7.1, VC7.2, VC6); Windows (Win2003, NT4, Win2K, WinXP, Win95, Win98, WinME); Win32, VS (
PEK 3.63
CImageTextButton
23 May 2004
Bitmap button which embeds text on it.

VC7.1, VC7, VC6, XP, W2K, Win2003, Win9X, MFC
anuragvelekkattu 3.4
Simple Auto-Repeat (Fire Control) Button Control
11 May 2001 Beginner
Simple drop-in button control that allows type-o-matic repeating on a button

VC 4-6, Win95-98, NT4, W2K, MFC, winmm.lib
Harold Bamford 3.27
CGroup - A Powerful Group Control
23 Aug 2001
A CButton-derived class that will give groups more powerful functionality.

VC6, Win98, NT4, W2K, MFC
David Msika 3.18
Image Button Control
28 Mar 2003
Image Button Control MFC Class ( CImageButton )

VC7, VC6, XP, W2K, Win9X, MFC
HAMZADAYI 3
Enable/Disable a group of controls with one click
23 Jul 2002
This article demonstrates a CButton derived class that is used to enable or disable a set of controls with a single click.

VC7, VC6, XP, W2K, Win9X, MFC
Pavel Sokolov 2.57
A button with rollover behavior using C++
8 Jan 2003
This class provides a button with rollover behavior

VC6, XP, W2K, Win9X, MFC
datenkabel 1.98
 
Non-rectangular Buttons
Title / Updated Author Score
PolyBtn, a polygon button class
24 Feb 2003
Another non-rectangular button class.

VC7, VC6, XP, W2K, Win9X, MFC
Chris Losinger 4.65
Flicker free resizable custom control
31 Oct 2005
This dynamically reziable control does not flicker. The article describes the problem and the technique used to solve the flickering.

C++ (VC7); Windows (Win2K, WinXP); Win32, VS (VS.NET2002), MFC, GDI, GDI+; Dev
JanKotowski 4.63
Transparent Button with Region and Anti-Aliased Edges
17 Aug 2004
Code for creating transparent, blended bitmapped buttons.

C++ (VC6); Windows (NT4, Win2K, WinXP, Win95, Win98, WinME); Win32, VS (VS6), MFC, GDI; Dev
Bob Carboni 4.55
Round Buttons
12 Jun 2003
A class that turns rectangular buttons into round buttons.

VC6, VC7.1, Win9x, W2K, XP
Chris Maunder 4.45
Elliptic Buttons
9 Feb 2000
A class that turns rectangular buttons into elliptic buttons.

VC++, win9x, NT4
Raghav Gupta 4.2
An elliptical button class with bitmap
31 Aug 2004
An article on an elliptic button class supporting bitmaps.

VC6, MFC
Dag Menning 3.47
CFlexiButton Class
20 Feb 2004
A class that lets you take a break from those rectangular buttons

VC6, MFC
Gilphi 3.27
CLedButton
4 Mar 2000
A button that looks like a LED.

VC6, Win9x, NT4, MFC
Benjamin Mayrargue 2.25
 
Owner-draw buttons
Title / Updated Author Score
XEmphasisButton - bold and underlined text in a non-ownerdraw button
23 May 2007
XEmphasisButton allows you to display buttons with bold and underlined text without requiring ownerdraw. This means that the button is perfectly compatible with XP themes, and also works on previous Windows versions.

C++ (VC6); Windows (Win98, Win2K, WinXP); Win32, VS (VS6), MFC; Dev
Hans Dietrich 4.85
FooButton
7 Oct 2006
A lightweight general-purpose owner drawn bitmap button.

C++ (VC6); Windows (Win2K, WinXP, WinME); Win32, VS, MFC; Dev
Ravi Bhavnani 4.81
COddButton
27 Oct 2002
How to make owner-draw buttons handle default state

VC 4-6, Win95-98, NT4, W2K, MFC
Paolo Messina, George 4.79
Irregular shaped buttons – owner drawn buttons made easy
22 Sep 2005
Freehand draw - make a button with irregular shape. A step by step beginner's guide.

C++ (VC6); Windows (Win2003, Win2K, WinXP, Win98, WinME); Win32, VS (VS6), MFC; Dev
Nareen Neelamegam 4.71
CCustomBitmapButton - MFC Bitmap Button
17 Sep 2004
An owner-draw bitmap button and a frame for the caption bar, in one class.

C++ (VC6); Windows (NT4, Win2K, WinXP, Win95, Win98, WinME); Win32, VS (VS6), MFC, GDI; Dev
Andrzej Markowski 4.68
CButtonST v3.9 (MFC Flat buttons)
29 Mar 2003
A fully featured owner-draw button class - it's got the lot!

VC++ 5.0-7.0, NT 4.0, Win95/98
Davide Calabro 4.67
CxShadeButton
5 Nov 2001
An owner-drawn button class that gives a professional look to your buttons.

VC 4-6, Win95-98, NT4, W2K, MFC
Davide Pizzolato 4.65
CxSkinButton
19 Jun 2003
A skinned button class with clipping region, tooltip and mouse tracking

VC 4-6, Win95-98, NT4, W2K, MFC
Davide Pizzolato 4.57
CXPStyleButtonST v1.2
22 Jan 2002
Windows XP buttons with all CButtonST features

VC7, VC6, XP, W2K, Win9X, MFC
Davide Calabro 4.53
Button with ToolTip and/or bitmap resource
15 Oct 2001
A simple way to have tooltip and a 4 state button using a bitmap resource

VC 4-6, Win95-98, NT4, W2K, MFC
Jean-Louis Guenego 4.5
LedButton Status Control (Owner-draw)
18 Jan 2005
Read-Only button control to display LED statuses (activity, multi-state, etc.).

C++ (VC7, VC7.1, VC6); Windows (Win2K, WinXP, Win98); Win32, VS (VS6, VS.NET2002, VS.NET2003), MFC;
rbid 4.49
FxButton Class
25 Nov 2003
FxButton allows developers to create customized buttons using captions, bitmaps, tooltips, etc.

VC7, VC6, XP, W2K, Win9X, MFC
RichardV 4.47
CWinXPButtonST
7 Sep 2001
A CButtonST derived class that emulates Office/Windows XP buttons

VC6, MFC
Davide Calabro 4.42
Custom Draw Buttons & A Smarter Groupbox
12 Jan 2000
A class to make working with radio buttons easier, and another for custom drawing buttons

VC6, Win9x, NT4, MFC
John Curtis 4.36
XP-style Button Control
7 Aug 2002
XP style button control for all version of windows.

VC7, VC6, XP, W2K, Win9X, MFC
Shrishail Rana 4.27
CShadeButtonST
26 Jun 2001
A Shaded Button made using CButtonST

VC 4-6, Win95-98, NT4, W2K, MFC
Davide Calabro 4.19
Moveable \ Resizable Runtime Hover Buttons with ToolTips
29 Jul 2001
An article on creating changable buttons

VC5, VC6, MFC
Fred Ackers 4.19
Animated Buttons
9 Feb 2000
A class that show AVIs inside a button.

VC++, win9x, NT4
Raghav Gupta 4.19
CWBButton - Resizable Bitmap Button
3 Jun 2000
CWBButton is a resizable bitmap button like GTK+ or Window Blinds.

VC6, Win95, Win98, NT4, W2K, MFC
Shinya Miyaoto 4.15
CButtonSSL
5 Dec 2001
An owner-drawn, flat, menu button that correctly handles the default state

VC6, MFC
Derek Lakin 4.08
Cool Push Menu Button
4 Jul 2003
This article shows the use of a Push button with a drop down menu, similar to the one found in the Office 2000 suite.

VC 4-6, Win95-98, NT4, W2K, MFC
norm.net 4.03
CHButton
20 Jul 2005
A CButton derived class which gives you the ability to use hyperlink buttons in your application.

C++ (VC7, VC7.1, VC6); Windows (Win2K, WinXP, Win98); Win32, VS, MFC; Dev
Giorgi Moniava 3.88
Transparant Image Button (BMP, GIF, JPG...)
31 Oct 2004
Using transparant image button~!

C++ (VC6); Windows (Win2K, WinXP); Win32, VS (VS6), MFC; Dev
kbckbc 3.85
Unicode Owner Draw Button Control
30 Sep 2005
Shows you how to display Unicode strings in an owner draw button control.

C++ (VC7, VC5, VC6); Windows (NT4, Win2K, WinXP, Win95, Win98); Win32, VS (VS5, VS6, VS.NET2002), MF
gizmocuz 3.75
An easy way to create transparent button
20 Nov 2003
An article on owner draw button

VC6
bhushan_at 3.71
CButton with icon
13 Aug 2002
A small class to create a button with an icon on it

VC7, VC6, XP, W2K, Win9X, MFC
Alexander Kloep 3.71
WowButtons with the GdiDrawStream function
19 Mar 2007
A very simple owner-draw button using the GdiDrawStream function.

C++ (VC7.1); Windows (Win95, Win98, NT4); Win32, VS, MFC, GDI; Dev
Zaqro 2.96
 
Purgatory
Title / Updated Author Score
Move Start Button
20 Oct 2004
Let's the user to move Start button present on the Taskbar

C++ (VC6); Windows (NT4, Win2K, WinXP, Win95, Win98, WinME); Win32, VS, MFC; Dev
Vikram Kashyap 2.87
Making Cool Button using Images
22 Sep 2003
This article is about creating cool buttons on a dialog

VC6, XP, W2K, Win2003, Win9X, MFC
FahadAsh 1.86
 
Unedited Reader Contributions
Title / Updated Author Score
XButtonXP - an XP-aware pushbutton that can also toggle and display an icon
20 Apr 2005
XButtonXP is an XP theme-aware pushbutton that can optionally be used as a toggle button. It can also display an icon with or without text.

C++ (VC6); Windows (Win2K, WinXP, Win98); Win32, VS (VS6), MFC; Dev
Hans Dietrich 4.5
HyperButtonEx: An All-in-One Button Class
24 Mar 2006
Bitmap transparency, custom fonts, rounded rectangles, and more! Hyperlink and Shell functionality built into the class.

C++ (VC6); Windows (Win98, Win2K, WinXP); Win32, VS (VS6), MFC; Dev
Douglas R. Keesler 4.02
Owner-draw icon buttons in plain C (no MFC)
7 Aug 2007
Use icons to draw buttons with owner-draw style

C++ (VC7), C; Windows (WinXP); Win32, VS (VS.NET2003), MFC; Dev
Bruno Challier 2.65
ButtonControl
4 Oct 2006
A simple button control showing the use of a property page.

C++ (VC7); Windows (Win2K); Win32, VS (VS.NET2003), MFC; Dev
_AnShUmAn_ 1.82
Color Button
18 Oct 2006 Beginner
Changing the Color of the Button control

C++ (VC6); Windows (Win95, Win98, Win2K, WinXP, Win2003, Vista); Win32, VS (VS.NET2002, VS.NET2003,
vasarlajagadish 1.22



last updated 24 Oct 2007
Web10 | Advertise | Privacy
Copyright © CodeProject, 1999-2007.
All Rights Reserved.