Add Definitions to the Include File

You must declare each menu ID in your application's include file. These constants are used both in the C-language source file and in the resource script file.

A menu ID can have any integer value. The only restriction is that menu IDs must be unique within a menu; no two commands in a menu can have the same menu ID.

Add the following to the include file:

#define IDM_ABOUT 100

/* file menu items */

#define IDM_NEW 101

#define IDM_OPEN 102

#define IDM_SAVE 103

#define IDM_SAVEAS 104

#define IDM_PRINT 105

#define IDM_EXIT 106

/* edit menu items */

#define IDM_UNDO 200

#define IDM_CUT 201

#define IDM_COPY 202

#define IDM_PASTE 203

#define IDM_CLEAR 204