0
|
1 |
#include "qmenu_wince_resource_p.h"
|
|
2 |
|
|
3 |
#include <commctrl.h>
|
|
4 |
#include "winuser.h"
|
|
5 |
|
|
6 |
#if defined (_DEBUG) && defined(QT_DLL)
|
|
7 |
#include "QtGuid_resource.rc"
|
|
8 |
#elif defined(QT_DLL)
|
|
9 |
#include "QtGui_resource.rc"
|
|
10 |
#endif
|
|
11 |
|
|
12 |
#define DIALOGEX DIALOG DISCARDABLE
|
|
13 |
#define SHMENUBAR RCDATA
|
|
14 |
#define I_IMAGENONE (-2)
|
|
15 |
#define NOMENU 0xFFFF
|
|
16 |
|
|
17 |
IDR_MAIN_MENU MENU DISCARDABLE
|
|
18 |
BEGIN
|
|
19 |
POPUP "Menu"
|
|
20 |
BEGIN
|
|
21 |
MENUITEM "About", IDM_ABOUT
|
|
22 |
END
|
|
23 |
END
|
|
24 |
|
|
25 |
IDR_MAIN_MENU2 MENU DISCARDABLE
|
|
26 |
BEGIN
|
|
27 |
POPUP "Menu"
|
|
28 |
BEGIN
|
|
29 |
MENUITEM "About", IDM_ABOUT
|
|
30 |
END
|
|
31 |
POPUP "Display"
|
|
32 |
BEGIN
|
|
33 |
MENUITEM "View", IDM_VIEW
|
|
34 |
END
|
|
35 |
END
|
|
36 |
|
|
37 |
|
|
38 |
IDR_MAIN_MENU3 MENU DISCARDABLE
|
|
39 |
BEGIN
|
|
40 |
POPUP "Menu1"
|
|
41 |
BEGIN
|
|
42 |
MENUITEM "Item1", IDM_ITEM1
|
|
43 |
END
|
|
44 |
POPUP "Menu2"
|
|
45 |
BEGIN
|
|
46 |
MENUITEM "Item2", IDM_ITEM2
|
|
47 |
END
|
|
48 |
POPUP "Menu3"
|
|
49 |
BEGIN
|
|
50 |
MENUITEM "Item3", IDM_ITEM3
|
|
51 |
END
|
|
52 |
POPUP "Menu4"
|
|
53 |
BEGIN
|
|
54 |
MENUITEM "Item4", IDM_ITEM4
|
|
55 |
END
|
|
56 |
END
|
|
57 |
|
|
58 |
IDR_MAIN_MENU4 MENU DISCARDABLE
|
|
59 |
BEGIN
|
|
60 |
POPUP "Menu1"
|
|
61 |
BEGIN
|
|
62 |
MENUITEM "Item1", IDM_ITEM1
|
|
63 |
END
|
|
64 |
POPUP "Menu2"
|
|
65 |
BEGIN
|
|
66 |
MENUITEM "Item2", IDM_ITEM2
|
|
67 |
END
|
|
68 |
POPUP "Menu3"
|
|
69 |
BEGIN
|
|
70 |
MENUITEM "Item3", IDM_ITEM3
|
|
71 |
END
|
|
72 |
POPUP "Menu4"
|
|
73 |
BEGIN
|
|
74 |
MENUITEM "Item4", IDM_ITEM4
|
|
75 |
END
|
|
76 |
POPUP "Menu5"
|
|
77 |
BEGIN
|
|
78 |
MENUITEM "Item5", IDM_ITEM5
|
|
79 |
END
|
|
80 |
POPUP "Menu6"
|
|
81 |
BEGIN
|
|
82 |
MENUITEM "Item6", IDM_ITEM6
|
|
83 |
END
|
|
84 |
END
|
|
85 |
|
|
86 |
IDR_MAIN_MENU5 MENU DISCARDABLE
|
|
87 |
BEGIN
|
|
88 |
POPUP "Menu1"
|
|
89 |
BEGIN
|
|
90 |
MENUITEM "Item1", IDM_ITEM1
|
|
91 |
END
|
|
92 |
POPUP "Menu2"
|
|
93 |
BEGIN
|
|
94 |
MENUITEM "Item2", IDM_ITEM2
|
|
95 |
END
|
|
96 |
POPUP "Menu3"
|
|
97 |
BEGIN
|
|
98 |
MENUITEM "Item3", IDM_ITEM3
|
|
99 |
END
|
|
100 |
POPUP "Menu4"
|
|
101 |
BEGIN
|
|
102 |
MENUITEM "Item4", IDM_ITEM4
|
|
103 |
END
|
|
104 |
POPUP "Menu5"
|
|
105 |
BEGIN
|
|
106 |
MENUITEM "Item5", IDM_ITEM5
|
|
107 |
END
|
|
108 |
POPUP "Menu6"
|
|
109 |
BEGIN
|
|
110 |
MENUITEM "Item6", IDM_ITEM6
|
|
111 |
END
|
|
112 |
POPUP "Menu7"
|
|
113 |
BEGIN
|
|
114 |
MENUITEM "Item7", IDM_ITEM7
|
|
115 |
END
|
|
116 |
POPUP "Menu8"
|
|
117 |
BEGIN
|
|
118 |
MENUITEM "Item8", IDM_ITEM8
|
|
119 |
END
|
|
120 |
END
|
|
121 |
|
|
122 |
STRINGTABLE
|
|
123 |
BEGIN
|
|
124 |
IDS_EXIT "Exit"
|
|
125 |
IDS_MENU "Menu"
|
|
126 |
IDS_LEFTMENU "Display"
|
|
127 |
IDS_MENU1 "Menu__1"
|
|
128 |
IDS_MENU2 "Menu__2"
|
|
129 |
IDS_MENU3 "Menu__3"
|
|
130 |
IDS_MENU4 "Menu__4"
|
|
131 |
IDS_MENU5 "Menu__5"
|
|
132 |
IDS_MENU6 "Menu__6"
|
|
133 |
IDS_MENU7 "Menu__7"
|
|
134 |
IDS_MENU8 "Menu__8"
|
|
135 |
END
|
|
136 |
|
|
137 |
IDR_MAIN_MENU SHMENUBAR DISCARDABLE
|
|
138 |
BEGIN
|
|
139 |
IDR_MAIN_MENU,
|
|
140 |
2,
|
|
141 |
|
|
142 |
I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE,
|
|
143 |
IDS_EXIT, 0, NOMENU,
|
|
144 |
|
|
145 |
I_IMAGENONE, IDM_MENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
146 |
IDS_MENU, 0, 0,
|
|
147 |
END
|
|
148 |
|
|
149 |
IDR_MAIN_MENU2 SHMENUBAR DISCARDABLE
|
|
150 |
BEGIN
|
|
151 |
IDR_MAIN_MENU2,
|
|
152 |
2,
|
|
153 |
|
|
154 |
I_IMAGENONE, IDM_LEFTMENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
155 |
IDS_LEFTMENU, 0, 1,
|
|
156 |
|
|
157 |
I_IMAGENONE, IDM_MENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
158 |
IDS_MENU, 0, 0,
|
|
159 |
END
|
|
160 |
|
|
161 |
IDR_MAIN_MENU3 SHMENUBAR DISCARDABLE
|
|
162 |
BEGIN
|
|
163 |
IDR_MAIN_MENU3,
|
|
164 |
4,
|
|
165 |
|
|
166 |
I_IMAGENONE, IDM_MENU1, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
167 |
IDS_MENU1, 0, 0,
|
|
168 |
|
|
169 |
I_IMAGENONE, IDM_MENU2, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
170 |
IDS_MENU2, 0, 1,
|
|
171 |
|
|
172 |
I_IMAGENONE, IDM_MENU3, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
173 |
IDS_MENU3, 0, 2,
|
|
174 |
|
|
175 |
I_IMAGENONE, IDM_MENU4, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
176 |
IDS_MENU4, 0, 3,
|
|
177 |
END
|
|
178 |
|
|
179 |
IDR_MAIN_MENU4 SHMENUBAR DISCARDABLE
|
|
180 |
BEGIN
|
|
181 |
IDR_MAIN_MENU4,
|
|
182 |
6,
|
|
183 |
|
|
184 |
I_IMAGENONE, IDM_MENU1, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
185 |
IDS_MENU1, 0, 0,
|
|
186 |
|
|
187 |
I_IMAGENONE, IDM_MENU2, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
188 |
IDS_MENU2, 0, 1,
|
|
189 |
|
|
190 |
I_IMAGENONE, IDM_MENU3, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
191 |
IDS_MENU3, 0, 2,
|
|
192 |
|
|
193 |
I_IMAGENONE, IDM_MENU4, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
194 |
IDS_MENU4, 0, 3,
|
|
195 |
|
|
196 |
I_IMAGENONE, IDM_MENU5, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
197 |
IDS_MENU5, 0, 4,
|
|
198 |
|
|
199 |
I_IMAGENONE, IDM_MENU6, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
200 |
IDS_MENU6, 0, 5,
|
|
201 |
END
|
|
202 |
|
|
203 |
IDR_MAIN_MENU5 SHMENUBAR DISCARDABLE
|
|
204 |
BEGIN
|
|
205 |
IDR_MAIN_MENU5,
|
|
206 |
8,
|
|
207 |
|
|
208 |
I_IMAGENONE, IDM_MENU1, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
209 |
IDS_MENU1, 0, 0,
|
|
210 |
|
|
211 |
I_IMAGENONE, IDM_MENU2, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
212 |
IDS_MENU2, 0, 1,
|
|
213 |
|
|
214 |
I_IMAGENONE, IDM_MENU3, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
215 |
IDS_MENU3, 0, 2,
|
|
216 |
|
|
217 |
I_IMAGENONE, IDM_MENU4, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
218 |
IDS_MENU4, 0, 3,
|
|
219 |
|
|
220 |
I_IMAGENONE, IDM_MENU5, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
221 |
IDS_MENU5, 0, 4,
|
|
222 |
|
|
223 |
I_IMAGENONE, IDM_MENU6, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
224 |
IDS_MENU6, 0, 5,
|
|
225 |
|
|
226 |
I_IMAGENONE, IDM_MENU7, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
227 |
IDS_MENU7, 0, 6,
|
|
228 |
|
|
229 |
I_IMAGENONE, IDM_MENU8, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
|
|
230 |
IDS_MENU8, 0, 7,
|
|
231 |
END
|