Click here to Skip to main content
15,896,063 members
Articles / Desktop Programming / MFC

EnumBinder - Bind C++ enums to strings, combo-boxes, arbitrary data structures

Rate me:
Please Sign up or sign in to vote.
4.83/5 (20 votes)
15 Aug 2005CPOL11 min read 133.2K   1.4K   65  
An easy way to bind C++ enums to strings, combo-boxes, list-boxes, arbitrary data structures.
//{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by EnumBinder.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_ENUMBINDER_DIALOG           102
#define IDR_MAINFRAME                   128
#define IDI_WEEKDAY                     129
#define IDI_WEEKEND                     130
#define IDC_COMBO_SHAPES                1000
#define IDC_BUTTON_CHECK_VALUES         1001
#define IDC_LIST_CANADA                 1002
#define IDC_EDIT_ABBREVIATION           1003
#define IDC_BUTTON1                     1005
#define IDC_BUTTON_UNIT_TEST            1005
#define IDC_COMBO_FRUIT                 1007
#define IDC_COMBO_WEEKDAYS              1008
#define IDC_IMAGE                       1009

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        131
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1010
#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 The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Canada Canada
www.IconsReview.com[^]
Huge list of stock icon collections (both free and commercial)

The picture is from September 2006, after picking up a rental car at the airport in Denver, Colorado. I'm smiling in the picture, because I have yet to come to the realization that I just wasted 400 bucks ( because you don't really need a car in downtown Denver - you can just walk everywhere).

Comments and Discussions