Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / MFC

CColorBox

Rate me:
Please Sign up or sign in to vote.
4.55/5 (17 votes)
3 Aug 2004Ms-RL2 min read 130.6K   5.2K   57  
A very simple button that shows a color and lets the user change it by clicking on the button.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by ColorBoxSample.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_COLORBOXSAMPLE_DIALOG       102
#define IDR_MAINFRAME                   128
#define IDC_BUTTON_COLOR1               1000
#define IDC_BUTTON_COLOR2               1005
#define IDC_BUTTON_COLOR3               1006
#define IDC_BUTTON_LAMP                 1007
#define IDC_CHECK_ENABLE1               1100
#define IDC_CHECK_ENABLE2               1101
#define IDC_CHECK_ENABLE3               1102
#define IDC_CHECK_ALLOWCHANGE1          1200
#define IDC_CHECK_ALLOWCHANGE2          1201
#define IDC_CHECK_ALLOWCHANGE3          1202
#define IDC_CHECK_SELECTED1             1300
#define IDC_CHECK_SELECTED2             1301
#define IDC_CHECK_SELECTED3             1302

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        129
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1009
#define _APS_NEXT_SYMED_VALUE           101
#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 Microsoft Reciprocal License


Written By
PEK
Sweden Sweden
PEK is one of the millions of programmers that sometimes program so hard that he forgets how to sleep (this is especially true when he has more important things to do). He thinks that there are not enough donuts in the world. He likes when his programs works as they should do, but dislikes when his programs is more clever than he is.

Comments and Discussions