Click here to Skip to main content
15,894,106 members
Articles / Desktop Programming / MFC

XButtonXP - an XP-aware pushbutton that can also toggle and display an icon

Rate me:
Please Sign up or sign in to vote.
4.89/5 (49 votes)
19 Jan 2008CPOL6 min read 540.5K   6.3K   145  
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.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by XButtonXPTest.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_XBUTTONXPTEST_DIALOG        100
#define IDD_ABOUTBOX                    101
#define IDD_COLOR_DIALOG                102
#define IDS_ABOUTBOX                    103
#define IDS_MAILTO                      104
#define IDS_ONLINE_HELP                 105
#define IDR_MAINFRAME                   128
#define IDI_MFC16                       129
#define IDI_MFC256                      130
#define IDI_MFC24BPP                    131
#define IDI_MFC32BPP                    132
#define IDC_ABOUT_EMAIL                 1000
#define IDC_BUTTON1                     1001
#define IDC_BUTTON2                     1002
#define IDC_ICON_LEFT                   1003
#define IDC_ICON_RIGHT                  1004
#define IDC_ICON_NO                     1005
#define IDC_TEXT_NO                     1006
#define IDC_TOGGLE                      1007
#define IDC_EDIT1                       1008
#define IDC_EDIT2                       1009
#define IDC_THEME                       1010
#define IDC_TOOLBAR                     1011
#define IDC_DISABLED                    1012
#define IDC_MULTILINE                   1013
#define IDC_DEFAULT                     1014
#define IDC_MESSAGEBOX                  1015
#define IDC_PATTERN                     1016
#define IDC_ICON_COMBO                  1017
#define IDC_ONLINE_HELP                 1018
#define IDC_COLORS                      1019
#define IDC_TEXT_COLOR                  1020
#define IDC_MULTIROOT                   1021
#define IDC_BACKGROUND_COLOR            1022
#define IDC_RESET_COLORS                1023

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        133
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1024
#define _APS_NEXT_SYMED_VALUE           106
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Hans Dietrich Software
United States United States
I attended St. Michael's College of the University of Toronto, with the intention of becoming a priest. A friend in the University's Computer Science Department got me interested in programming, and I have been hooked ever since.

Recently, I have moved to Los Angeles where I am doing consulting and development work.

For consulting and custom software development, please see www.hdsoft.org.






Comments and Discussions