summaryrefslogtreecommitdiff
path: root/src/gui/widgets/qmenu_wince.rc
blob: 2540d9f43a6032f49982fc7e7d16cba97129f7a7 (plain)
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
#include "qmenu_wince_resource_p.h"

#include <commctrl.h>
#include "winuser.h"

#if defined (_DEBUG) && defined(QT_DLL)
#include "QtGuid_resource.rc"
#elif defined(QT_DLL)
#include "QtGui_resource.rc"
#endif

#define DIALOGEX        DIALOG DISCARDABLE
#define SHMENUBAR       RCDATA
#define I_IMAGENONE     (-2)
#define NOMENU          0xFFFF

IDR_MAIN_MENU MENU DISCARDABLE 
BEGIN
    POPUP "Menu"
    BEGIN
      MENUITEM "About",                       IDM_ABOUT  
    END
END

IDR_MAIN_MENU2 MENU DISCARDABLE 
BEGIN
    POPUP "Menu"
    BEGIN
      MENUITEM "About",                       IDM_ABOUT  
    END
    POPUP "Display"
    BEGIN
      MENUITEM "View",                        IDM_VIEW
    END
END


IDR_MAIN_MENU3 MENU DISCARDABLE 
BEGIN
    POPUP "Menu1"
    BEGIN
      MENUITEM "Item1",                       IDM_ITEM1
    END
    POPUP "Menu2"
    BEGIN
      MENUITEM "Item2",                       IDM_ITEM2
    END
    POPUP "Menu3"
    BEGIN
      MENUITEM "Item3",                       IDM_ITEM3
    END
    POPUP "Menu4"
    BEGIN
      MENUITEM "Item4",                       IDM_ITEM4
    END
END

IDR_MAIN_MENU4 MENU DISCARDABLE 
BEGIN
    POPUP "Menu1"
    BEGIN
      MENUITEM "Item1",                       IDM_ITEM1
    END
    POPUP "Menu2"
    BEGIN
      MENUITEM "Item2",                       IDM_ITEM2
    END
    POPUP "Menu3"
    BEGIN
      MENUITEM "Item3",                       IDM_ITEM3
    END
    POPUP "Menu4"
    BEGIN
      MENUITEM "Item4",                       IDM_ITEM4
    END
    POPUP "Menu5"
    BEGIN
      MENUITEM "Item5",                       IDM_ITEM5
    END
    POPUP "Menu6"
    BEGIN
      MENUITEM "Item6",                       IDM_ITEM6
    END
END

IDR_MAIN_MENU5 MENU DISCARDABLE 
BEGIN
    POPUP "Menu1"
    BEGIN
      MENUITEM "Item1",                       IDM_ITEM1
    END
    POPUP "Menu2"
    BEGIN
      MENUITEM "Item2",                       IDM_ITEM2
    END
    POPUP "Menu3"
    BEGIN
      MENUITEM "Item3",                       IDM_ITEM3
    END
    POPUP "Menu4"
    BEGIN
      MENUITEM "Item4",                       IDM_ITEM4
    END
    POPUP "Menu5"
    BEGIN
      MENUITEM "Item5",                       IDM_ITEM5
    END
    POPUP "Menu6"
    BEGIN
      MENUITEM "Item6",                       IDM_ITEM6
    END
    POPUP "Menu7"
    BEGIN
      MENUITEM "Item7",                       IDM_ITEM7
    END
    POPUP "Menu8"
    BEGIN
      MENUITEM "Item8",                       IDM_ITEM8
    END
END

STRINGTABLE  
BEGIN   
   IDS_EXIT	"Exit"
   IDS_MENU	"Menu"
   IDS_LEFTMENU "Display"
   IDS_MENU1	"Menu__1"
   IDS_MENU2	"Menu__2"
   IDS_MENU3	"Menu__3"
   IDS_MENU4	"Menu__4"
   IDS_MENU5	"Menu__5"
   IDS_MENU6	"Menu__6"
   IDS_MENU7	"Menu__7"
   IDS_MENU8	"Menu__8"
END

IDR_MAIN_MENU SHMENUBAR DISCARDABLE
BEGIN
    IDR_MAIN_MENU, 
    2,

    I_IMAGENONE, IDM_EXIT, TBSTATE_ENABLED, TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE,
    IDS_EXIT, 0, NOMENU,
    
    I_IMAGENONE, IDM_MENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU, 0, 0,
END

IDR_MAIN_MENU2 SHMENUBAR DISCARDABLE
BEGIN
    IDR_MAIN_MENU2, 
    2,

    I_IMAGENONE, IDM_LEFTMENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_LEFTMENU, 0, 1,
    
    I_IMAGENONE, IDM_MENU, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU, 0, 0,
END

IDR_MAIN_MENU3 SHMENUBAR DISCARDABLE
BEGIN
    IDR_MAIN_MENU3, 
    4,

    I_IMAGENONE, IDM_MENU1, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU1, 0, 0,

    I_IMAGENONE, IDM_MENU2, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU2, 0, 1,

    I_IMAGENONE, IDM_MENU3, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU3, 0, 2,

    I_IMAGENONE, IDM_MENU4, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU4, 0, 3,
END

IDR_MAIN_MENU4 SHMENUBAR DISCARDABLE
BEGIN
    IDR_MAIN_MENU4, 
    6,

    I_IMAGENONE, IDM_MENU1, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU1, 0, 0,

    I_IMAGENONE, IDM_MENU2, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU2, 0, 1,

    I_IMAGENONE, IDM_MENU3, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU3, 0, 2,

    I_IMAGENONE, IDM_MENU4, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU4, 0, 3,

    I_IMAGENONE, IDM_MENU5, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU5, 0, 4,

    I_IMAGENONE, IDM_MENU6, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU6, 0, 5,
END

IDR_MAIN_MENU5 SHMENUBAR DISCARDABLE
BEGIN
    IDR_MAIN_MENU5, 
    8,

    I_IMAGENONE, IDM_MENU1, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU1, 0, 0,

    I_IMAGENONE, IDM_MENU2, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU2, 0, 1,

    I_IMAGENONE, IDM_MENU3, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU3, 0, 2,

    I_IMAGENONE, IDM_MENU4, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU4, 0, 3,

    I_IMAGENONE, IDM_MENU5, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU5, 0, 4,

    I_IMAGENONE, IDM_MENU6, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU6, 0, 5,

    I_IMAGENONE, IDM_MENU7, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU7, 0, 6,

    I_IMAGENONE, IDM_MENU8, TBSTATE_ENABLED, TBSTYLE_DROPDOWN | TBSTYLE_AUTOSIZE,
    IDS_MENU8, 0, 7,
END