|
|
1.1 root 1: /*************************************************************************
2: **
3: ** OLE 2.0 Server Sample Code
4: **
5: ** message.h
6: **
7: ** This file is a user customizable list of status messages associated
8: ** with menu items.
9: **
10: ** (c) Copyright Microsoft Corp. 1992 - 1993 All Rights Reserved
11: **
12: *************************************************************************/
13:
14: // Status bar messages and associated data.
15:
16: // Message type for status bar messages.
17: typedef struct {
18: UINT wIDItem;
19: char *string;
20: } STATMESG;
21:
22: /*
23: * CUSTOMIZATION NOTE: Be sure to change NUM_POPUP if you
24: * change the number of popup messages.
25: */
26:
27: // REVIEW: these messages should be loaded from a string resource
28:
29: // List of all menu item messages.
30: STATMESG MesgList[] =
31: {
32: { IDM_F_NEW, "Creates a new outline" },
33: { IDM_F_OPEN, "Opens an existing outline file" },
34: { IDM_F_SAVE, "Saves the outline" },
35: { IDM_F_SAVEAS, "Saves the outline with a new name" },
36: { IDM_F_PRINT, "Prints the outline" },
37: { IDM_F_PRINTERSETUP, "Changes the printer and the printing options" },
38: { IDM_F_EXIT, "Quits the application, prompting to save changes" },
39:
40: { IDM_E_UNDO, "Undo not yet implemented" },
41: { IDM_E_CUT, "Cuts the selection and puts it on the Clipboard" },
42: { IDM_E_COPY, "Copies the selection and puts it on the Clipboard" },
43: { IDM_E_PASTE, "Inserts the Clipboard contents after current line" },
44: { IDM_E_PASTESPECIAL,"Allows pasting Clipboard data using a special format" },
45: { IDM_E_CLEAR, "Clears the selection" },
46: { IDM_E_SELECTALL, "Selects the entire outline" },
47: #if defined( OLE_CNTR )
48: { IDM_E_INSERTOBJECT, "Inserts new object after current line" },
49: { IDM_E_EDITLINKS, "Edit and view links contained in the document" },
50: { IDM_E_CONVERTVERB, "Converts or activates an object as another type" },
51: { IDM_E_OBJECTVERBMIN, "Opens, edits or interacts with an object" },
52: { IDM_E_OBJECTVERBMIN+1, "Opens, edits or interacts with an object1" },
53: { IDM_E_OBJECTVERBMIN+2, "Opens, edits or interacts with an object2" },
54: { IDM_E_OBJECTVERBMIN+3, "Opens, edits or interacts with an object3" },
55: { IDM_E_OBJECTVERBMIN+4, "Opens, edits or interacts with an object4" },
56: { IDM_E_OBJECTVERBMIN+5, "Opens, edits or interacts with an object5" },
57: #endif
58:
59: { IDM_L_ADDLINE, "Adds a new line after current line" },
60: { IDM_L_EDITLINE, "Edits the current line" },
61: { IDM_L_INDENTLINE, "Indents the selection" },
62: { IDM_L_UNINDENTLINE, "Unindents the selection" },
63:
64: { IDM_N_DEFINENAME, "Assigns a name to the selection" },
65: { IDM_N_GOTONAME, "Jumps to a specified place in the outline" },
66:
67: { IDM_H_ABOUT, "Displays program info, version no., and copyright" }
68: };
69:
70: #define NUM_STATS sizeof(MesgList)/sizeof(MesgList[0])
71: #define NUM_POPUP 10 // Maximum number of popup messages.
72: #define MAX_MESSAGE 100 // Maximum characters in a popup message.
73:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.