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

Dynamic Items

Rate me:
Please Sign up or sign in to vote.
4.93/5 (15 votes)
24 Feb 20034 min read 200.4K   6.7K   85  
A class and an easy way to dynamically add items stored in a file to a menu
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by DynamicMenuDemo.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDBMP_GREEN                     100
#define IDS_ABOUTBOX                    101
#define IDBMP_ORANGE                    101
#define IDD_DYNAMICMENUDEMO_DIALOG      102
#define IDBMP_RED                       102
#define IDI_ICONE_ABOUT                 105
#define IDR_MENU                        108
#define IDR_DYNAMIC_MENU                109
#define IDS_REG_KEY_PATH                119
#define IDS_REG_VAL_PATH_DEFAUT         123
#define IDR_MAINFRAME                   128
#define ID_LOAD_MENU_FILE               32769
#define ID_DYNMENU_DUMMY                32771
#define ID_REMOVEDYNAMICMENU            32772

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        130
#define _APS_NEXT_COMMAND_VALUE         32773
#define _APS_NEXT_CONTROL_VALUE         1000
#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.


Written By
Team Leader
France France
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions