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

Owner-Draw Control Example: A Color Table Generator

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
4 Feb 20022 min read 160K   1.4K   23  
A control for generating colour gradients
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by colors.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_COLORS_DIALOG               102
#define IDS_UNKNOWN_ERROR               102
#define IDR_MAINFRAME                   128
#define IDR_MAINMENU                    129
#define IDB_UP                          130
#define IDB_DOWN                        131
#define IDC_COLORS                      1000
#define IDC_R                           1001
#define IDC_G                           1002
#define IDC_B                           1003
#define IDC_SPINR                       1004
#define IDC_SPING                       1005
#define IDC_SPINB                       1006
#define IDC_COLOR                       1007
#define IDC_SAVE                        1008
#define IDC_UP                          1009
#define IDC_DOWN                        1010
#define IDC_ADD                         1011
#define IDC_DELETE                      1012
#define IDC_LOAD                        1013
#define IDC_STOCK                       1015
#define IDC_CLEAR                       1016
#define IDC_BELOW                       1017
#define IDC_APPEND                      1018
#define IDC_R255                        10000
#define IDC_G255                        10001
#define IDC_B255                        10002
#define IDC_R204                        10003
#define IDC_G204                        10004
#define IDC_B204                        10005
#define IDC_R192                        10006
#define IDC_G192                        10007
#define IDC_B192                        10008
#define IDC_R153                        10009
#define IDC_G153                        10010
#define IDC_B153                        10011
#define IDC_R127                        10012
#define IDC_G127                        10013
#define IDC_B127                        10014
#define IDC_R102                        10015
#define IDC_G102                        10016
#define IDC_B102                        10017
#define IDC_R51                         10018
#define IDC_G51                         10019
#define IDC_B51                         10020
#define IDC_R0                          10021
#define IDC_G0                          10022
#define IDC_B0                          10023
#define IDC_CLOSE                       32771

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        131
#define _APS_NEXT_COMMAND_VALUE         32772
#define _APS_NEXT_CONTROL_VALUE         1019
#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 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


Written By
Retired
United States United States
PhD, Computer Science, Carnegie Mellon University, 1975
Certificate in Forensic Science and the Law, Duquesne University, 2008

Co-Author, [i]Win32 Programming[/i]

Comments and Discussions