-
Notifications
You must be signed in to change notification settings - Fork 3
/
DeMic.rc
406 lines (339 loc) · 23 KB
/
DeMic.rc
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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#ifndef APSTUDIO_INVOKED
#include "targetver.h"
#endif
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// 非特定语言(默认值) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUD)
LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_DEMIC ICON "DeMic.ico"
IDI_MICPHONE ICON "microphone.ico"
IDI_MICROPHONE_MUTED ICON "microphone_muted.ico"
#endif // 非特定语言(默认值) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// 中文(简体,中国) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS)
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_ABOUTBOX, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 219
TOPMARGIN, 7
BOTTOMMARGIN, 122
END
IDD_HOTKEY_SETTING, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 214
TOPMARGIN, 7
BOTTOMMARGIN, 53
END
IDD_SOUND_SETTINGS, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 217
TOPMARGIN, 7
BOTTOMMARGIN, 133
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_ABOUTBOX DIALOGEX 0, 0, 226, 126
STYLE DS_ABSALIGN | DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,123,102,50,20
PUSHBUTTON "Cancel",IDCANCEL,31,109,53,13
END
IDD_HOTKEY_SETTING DIALOGEX 0, 0, 221, 60
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "热键设置"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "确定",IDOK,101,39,50,14
PUSHBUTTON "取消",IDCANCEL,164,39,50,14
CONTROL "",IDC_HOTKEY,"msctls_hotkey32",WS_BORDER | WS_TABSTOP,75,14,93,12
RTEXT "热键:",IDC_HOTKEY_STATIC,41,16,33,13
END
IDD_SOUND_SETTINGS DIALOGEX 0, 0, 224, 140
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "提示音设置"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "确定",IDOK,91,119,50,14
PUSHBUTTON "取消",IDCANCEL,167,119,50,14
CONTROL "打开麦克风时播放声音",IDC_ENABLE_ON_SOUND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,7,86,10
CTEXT "<默认>",IDC_ON_SOUND_PATH,17,30,114,12,SS_NOTIFY | SS_CENTERIMAGE | SS_PATHELLIPSIS,WS_EX_STATICEDGE
PUSHBUTTON "播放",IDC_ON_SOUND_PLAY,175,25,33,17
PUSHBUTTON "选择",IDC_ON_SOUND_SELECT,137,25,33,17
CONTROL "关闭麦克风时播放声音",IDC_ENABLE_OFF_SOUND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,65,86,10
CTEXT "<默认>",IDC_OFF_SOUND_PATH,17,87,114,12,SS_NOTIFY | SS_CENTERIMAGE | SS_PATHELLIPSIS,WS_EX_STATICEDGE
PUSHBUTTON "播放",IDC_OFF_SOUND_PLAY,175,82,33,17
PUSHBUTTON "选择",IDC_OFF_SOUND_SELECT,137,82,33,17
END
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,1,1,0
PRODUCTVERSION 1,1,1,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "CompanyName", "自觉放齐(ZJFQ)"
VALUE "FileDescription", "DeMic"
VALUE "FileVersion", "1.1.1.0"
VALUE "InternalName", "DeMic.exe"
VALUE "LegalCopyright", "Copyright 自觉放齐(C) 2023"
VALUE "OriginalFilename", "DeMic.exe"
VALUE "ProductName", "DeMic"
VALUE "ProductVersion", "1.1.1.0"
END
BLOCK "080404b0"
BEGIN
VALUE "CompanyName", "自觉放齐"
VALUE "FileDescription", "DeMic"
VALUE "FileVersion", "1.1.1.0"
VALUE "InternalName", "DeMic.exe"
VALUE "LegalCopyright", "Copyright 自觉放齐(C) 2023"
VALUE "OriginalFilename", "DeMic.exe"
VALUE "ProductName", "DeMic"
VALUE "ProductVersion", "1.1.1.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200, 0x804, 1200
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDC_NOTIF_MENU MENU
BEGIN
POPUP "Menu"
BEGIN
MENUITEM "插件(&P)", ID_MENU_PLUGIN
MENUITEM SEPARATOR
MENUITEM "热键设置(&H)", ID_MENU_HOTKEYSETTING
MENUITEM "提示音设置(&S)", ID_MENU_SOUND_SETTINGS
MENUITEM SEPARATOR
MENUITEM "开机启动(&B)", ID_MENU_START_ON_BOOT
MENUITEM SEPARATOR
MENUITEM "退出(&X)", ID_MENU_EXIT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_APP_TITLE "DeMic"
IDS_RUNNING_IN_SYSTEM_TRAY "已成功启动。请单击通知区图标以切换状态;右键单击进行更多设置。"
IDS_HOTKEY "热键:"
IDS_ALREADY_RUNNING "已经在运行了!"
IDS_NOTIFICATION_TIP "DeMic %s\n单击:切换状态\n右键:更多操作"
IDS_NAN "<默认>"
IDS_NO_PLUGIN "无插件"
IDS_PLUGIN_INSTRUCTION "无插件。请把要加载的插件文件放到以下目录:"
IDS_CAN_NOT_LOAD_PLUGIN "无法加载插件:"
END
#endif // 中文(简体,中国) resources
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// 英语(美国) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO
BEGIN
IDD_SOUND_SETTINGS, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 217
TOPMARGIN, 7
BOTTOMMARGIN, 133
END
IDD_HOTKEY_SETTING, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 214
TOPMARGIN, 7
BOTTOMMARGIN, 53
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_SOUND_SETTINGS DIALOGEX 0, 0, 224, 140
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Sound Settings"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
DEFPUSHBUTTON "OK",IDOK,91,119,50,14
PUSHBUTTON "Cancel",IDCANCEL,167,119,50,14
CONTROL "Play sound when mic on",IDC_ENABLE_ON_SOUND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,7,92,10
CTEXT "<Default>",IDC_ON_SOUND_PATH,17,30,114,12,SS_NOTIFY | SS_CENTERIMAGE | SS_PATHELLIPSIS,WS_EX_STATICEDGE
PUSHBUTTON "Play",IDC_ON_SOUND_PLAY,175,25,33,17
PUSHBUTTON "Select",IDC_ON_SOUND_SELECT,137,25,33,17
CONTROL "Play sound when mic off",IDC_ENABLE_OFF_SOUND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,65,93,10
CTEXT "<Default>",IDC_OFF_SOUND_PATH,17,87,114,12,SS_NOTIFY | SS_CENTERIMAGE | SS_PATHELLIPSIS,WS_EX_STATICEDGE
PUSHBUTTON "Play",IDC_OFF_SOUND_PLAY,175,82,33,17
PUSHBUTTON "Select",IDC_OFF_SOUND_SELECT,137,82,33,17
END
IDD_HOTKEY_SETTING DIALOGEX 0, 0, 221, 60
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "Hotkey Setting"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
CONTROL "",IDC_HOTKEY,"msctls_hotkey32",WS_BORDER | WS_TABSTOP,78,14,93,12
DEFPUSHBUTTON "OK",IDOK,101,39,50,14
PUSHBUTTON "Cancel",IDCANCEL,164,39,50,14
RTEXT "Hotkey:",IDC_HOTKEY_STATIC,41,16,33,14
END
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
IDC_DEMIC MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", IDM_EXIT
END
POPUP "&Help"
BEGIN
MENUITEM "&About ...", IDM_ABOUT
END
END
IDC_NOTIF_MENU MENU
BEGIN
POPUP "Menu"
BEGIN
MENUITEM "&Plugin", ID_MENU_PLUGIN
MENUITEM SEPARATOR
MENUITEM "&Hotkey Setting", ID_MENU_HOTKEYSETTING
MENUITEM "&Sound Settings", ID_MENU_SOUND_SETTINGS
MENUITEM SEPARATOR
MENUITEM "Start on &Boot", ID_MENU_START_ON_BOOT
MENUITEM SEPARATOR
MENUITEM "E&xit", ID_MENU_EXIT
END
END
/////////////////////////////////////////////////////////////////////////////
//
// Accelerator
//
IDC_DEMIC ACCELERATORS
BEGIN
"?", IDM_ABOUT, ASCII, ALT
"/", IDM_ABOUT, ASCII, ALT
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE
BEGIN
"#ifndef APSTUDIO_INVOKED\r\n"
"#include ""targetver.h""\r\n"
"#endif\r\n"
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""windows.h""\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
"\0"
END
3 TEXTINCLUDE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// RT_MANIFEST
//
1 RT_MANIFEST "manifest.xml"
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE
BEGIN
IDS_APP_TITLE "DeMic"
IDS_RUNNING_IN_SYSTEM_TRAY
"Started successfully. Please click the system tray icon to toggle, and right click to show settings."
IDS_HOTKEY "Hotkey:"
IDS_ALREADY_RUNNING "Already running!"
IDS_NOTIFICATION_TIP "DeMic %s\nClick: Toggle\nRight click: Show menu"
IDS_NAN "<Default>"
IDS_NO_PLUGIN "No plugin"
IDS_PLUGIN_INSTRUCTION "No plugin. Please put plugin files in the following directiry: "
IDS_CAN_NOT_LOAD_PLUGIN "Can't load plugin: "
END
#endif // 英语(美国) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED