blob: 6e23c7c2a9c0aa9794ca1bd3a75e59278c3366a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
/************************************************************/
/* Windows Write, Copyright 1985-1992 Microsoft Corporation */
/************************************************************/
/*
This file contains the definitions of the numerical indexes to the menu
items (imi) used by Windows WRITE.
Each imi should be unique and be continuous within the same
menu. The middle 2 bytes of imi are masked against MENUMASK to
provide the submenu index.
IF any of the menu item order has changed, menu.c has
to be modified also -- rgmfAllItem, rgmfScrap, SetMenuFlags etc.
*/
/* number of pulldown submenus */
#define CMENUS 7
/* menu index */
#define FILE 0
#define EDIT 1
#define FIND 2
#define CHARACTER 3
#define PARA 4
#define DIV 5
#define HELP 6
#define MENUMASK 0x0ff0
#define FILEMENU 0x0000
#define EDITMENU 0x0010
#define FINDMENU 0x0020
#define CHARMENU 0x0040
#define PARAMENU 0x0080
#define DOCUMENU 0x0100
#define HELPMENU 0x0200
#define VERBMENU 0x0400
#define fMenuItem 0x1000
#define imiNil 0x1fff
#define imiHelp 0xf2f0
/* Menu items */
/* #define imiAbout 0x1000 */
#define imiNew 0x1001
#define imiOpen 0x1002
#define imiSave 0x1003
#define imiSaveAs 0x1004
#define imiPrint 0x1005
#define imiPrintSetup 0x1006
#define imiRepaginate 0x1007
#define imiQuit 0x1008
#define imiFileMin (imiNew)
#define imiFileMax (imiQuit + 1)
#define imiUndo 0x1010
#define imiCut 0x1011
#define imiCopy 0x1012
#define imiPaste 0x1013
#define imiMovePicture 0x1014
#define imiSizePicture 0x1015
#if defined(OLE)
#if !defined(SMALL_OLE_UI)
#define imiPasteLink 0x1016
#define imiProperties 0x1017
#endif
#define imiInsertNew 0x1018
#define imiPasteSpecial 0x1019
#endif
#define imiEditMin (imiUndo)
/* note imiEditMax intentionally doesn't include OLE menu items. (1.25.91) D. Kent */
#define imiEditMax (imiSizePicture + 1)
#if defined(OLE)
/* verbs */
#define imiVerb 0x1400
#define imiVerbEdit 0x1401
#define imiVerbPlay 0x1402
#define imiVerbMax 0x14FF
#endif
#define imiFind 0x1020
#define imiFindAgain 0x1021
#define imiChange 0x1022
#define imiGoTo 0x1023
#define imiFindMin (imiFind)
#define imiFindMax (imiGoTo + 1)
#if defined(OLE)
/* these aren't really menu items, but we'll associate them with
WM_COMMAND messages like cardfile does. 01/24/91 -- dougk */
#define imiActivate 1030
#define imiUpdate 1031
#define imiFreeze 1032
#define imiClone 1033
#define imiCopyfromlink 1034
#endif
#define imiCharNormal 0x1040
#define imiBold 0x1041
#define imiItalic 0x1042
#define imiUnderline 0x1043
#define imiSuper 0x1044
#define imiSub 0x1045
#if 0
#define imiFont1 0x1046
#define imiFont2 0x1047
#define imiFont3 0x1048
#endif
#define imiSmFont 0x1046
#define imiLgFont 0x1047
#define imiCharFormats 0x1048
#define imiCharMin (imiCharNormal)
#define imiCharMax (imiCharFormats + 1)
/* special accelerator key
#define imiAccelBold 0x104c
#define imiAccelItalic 0x104d
#define imiAccelUnderline 0x104e*/
#define imiParaNormal 0x1080
#define imiLeft 0x1081
#define imiCenter 0x1082
#define imiRight 0x1083
#define imiJustified 0x1084
#define imiSingleSpace 0x1085
#define imiOneandhalfSpace 0x1086
#define imiDoubleSpace 0x1087
#define imiParaFormats 0x1088
#define imiParaMin (imiParaNormal)
#define imiParaMax (imiParaFormats + 1)
#define imiHeader 0x1100
#define imiFooter 0x1101
#define imiShowRuler 0x1102
#define imiTabs 0x1103
#define imiDivFormats 0x1104
#define imiDocuMin (imiHeader)
#define imiDocuMax (imiDivFormats + 1)
#define imiIndex 0x1200
#define imiHelpSearch 0x1201
#define imiUsingHelp 0x1202
#define imiAbout 0x1203
#define imiHelpMin (imiIndex)
#define imiHelpMax (imiAbout + 1)
#ifdef CASHMERE
#define imiFootnote
#define imiPreferences
#endif
#ifdef ENABLE /* CFILE, CEDIT ... */
/* number of items in each submenu */
#define CFILE (imiFileMax - imiFileMin)
#define CEDIT (imiEditMax - imiEditMin)
#define CFIND (imiFindMax - imiFindMin)
#define CCHAR (imiCharMax - imiCharMin)
#define CPARA (imiParaMax - imiParaMin)
#define CDOCU (imiDocuMax - imiDocuMin)
#define CHELP (imiHelpMax - imiHelpMin)
#endif
|