[SERVMAN] Add an accelerator for the F5 (refresh) key

CORE-14389
This commit is contained in:
Eric Kohl 2018-02-24 18:38:08 +01:00
parent 6771bf55a0
commit 4b8f53c9e9
26 changed files with 152 additions and 25 deletions

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Продължаване", ID_RESUME, GRAYED
MENUITEM "Презапуск", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Опресняване", ID_REFRESH
MENUITEM "Опресняване\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Обработка...", ID_EDIT, GRAYED
MENUITEM "Създаване...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "За управителя на устройствата"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Pokračovat", ID_RESUME, GRAYED
MENUITEM "Restartovat", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Obnovit", ID_REFRESH
MENUITEM "Obnovit\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Upravit...", ID_EDIT, GRAYED
MENUITEM "Vytvořit...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "O správci služeb"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -1,4 +1,4 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
IDR_MAINMENU MENU
BEGIN
@ -18,7 +18,7 @@ BEGIN
MENUITEM "Fortsetzen", ID_RESUME, GRAYED
MENUITEM "Neu starten", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Aktualisieren", ID_REFRESH
MENUITEM "Aktualisieren\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Bearbeiten...", ID_EDIT, GRAYED
MENUITEM "Erstellen...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Info über Dienst-Manager"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Συνέχιση", ID_RESUME, GRAYED
MENUITEM "Επανεκκίνηση", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Ανανέωση", ID_REFRESH
MENUITEM "Ανανέωση\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Επεξεργασία...", ID_EDIT, GRAYED
MENUITEM "Δημιουργία...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Σχετικά με το Διαχειριστή Υπηρεσιών"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Resu&me", ID_RESUME, GRAYED
MENUITEM "Rest&art", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Re&fresh", ID_REFRESH
MENUITEM "Re&fresh\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "&Edit...", ID_EDIT, GRAYED
MENUITEM "Crea&te...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "About Service Manager"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -21,7 +21,7 @@ BEGIN
MENUITEM "Reanudar", ID_RESUME, GRAYED
MENUITEM "Reiniciar", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Actualizar", ID_REFRESH
MENUITEM "Actualizar\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Editar...", ID_EDIT, GRAYED
MENUITEM "Crear...", ID_CREATE, GRAYED
@ -66,6 +66,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Acerca del Administrador de servicios"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Reprendre", ID_RESUME, GRAYED
MENUITEM "Redémarrer", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Rafraîchir", ID_REFRESH
MENUITEM "Rafraîchir\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Éditer...", ID_EDIT, GRAYED
MENUITEM "Créer...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "À Propos du gestionnaire de services"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "חדש", ID_RESUME, GRAYED
MENUITEM "הפעל מחדש", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "רענן", ID_REFRESH
MENUITEM "רענן\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "עריכה...", ID_EDIT, GRAYED
MENUITEM "יצירה...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "אודות מנהל השירותים"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Lanjutkan", ID_RESUME, GRAYED
MENUITEM "Mulai lagi", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Segarkan", ID_REFRESH
MENUITEM "Segarkan\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Edit...", ID_EDIT, GRAYED
MENUITEM "Buat...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Tentang Manajer Layanan"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Ripristina", ID_RESUME, GRAYED
MENUITEM "Riavvia", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Aggiorna", ID_REFRESH
MENUITEM "Aggiorna\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Modifica...", ID_EDIT, GRAYED
MENUITEM "Crea...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Informazioni su Gestione Servizi"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "再開", ID_RESUME, GRAYED
MENUITEM "再起動", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "更新", ID_REFRESH
MENUITEM "更新\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "編集...", ID_EDIT, GRAYED
MENUITEM "作成...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "サービス マネージャについて"
FONT 9, "MS UI Gothic", 0, 0

View file

@ -20,7 +20,7 @@ BEGIN
MENUITEM "계속", ID_RESUME, GRAYED
MENUITEM "다시 시작", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "새로 고침", ID_REFRESH
MENUITEM "새로 고침\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "편집...", ID_EDIT, GRAYED
MENUITEM "추가...", ID_CREATE, GRAYED
@ -65,6 +65,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "서비스 매니저에 대하여"
FONT 9, "굴림", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Fortsett", ID_RESUME, GRAYED
MENUITEM "Restart", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Oppdater", ID_REFRESH
MENUITEM "Oppdater\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Rediger...", ID_EDIT, GRAYED
MENUITEM "Opprett...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Om Tjenestebehandler"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -28,7 +28,7 @@ BEGIN
MENUITEM "Wznów", ID_RESUME, GRAYED
MENUITEM "Uruchom ponownie", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Odśwież", ID_REFRESH
MENUITEM "Odśwież\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Edycja...", ID_EDIT, GRAYED
MENUITEM "Utwórz...", ID_CREATE, GRAYED
@ -73,6 +73,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Menedżer usług - informacje"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -23,7 +23,7 @@ BEGIN
MENUITEM "R&eia", ID_RESUME, GRAYED
MENUITEM "&Repornește", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Împrospătea&ză", ID_REFRESH
MENUITEM "Împrospătea&ză\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Mo&dificare…", ID_EDIT, GRAYED
MENUITEM "&Creare…", ID_CREATE, GRAYED
@ -68,6 +68,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Despre Gestionar de servicii"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -18,7 +18,7 @@ BEGIN
MENUITEM "Продол&жить", ID_RESUME, GRAYED
MENUITEM "Пере&запустить", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "О&бновить", ID_REFRESH
MENUITEM "О&бновить\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "&Изменить...", ID_EDIT, GRAYED
MENUITEM "С&оздать...", ID_CREATE, GRAYED
@ -63,6 +63,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "О Диспетчере служб"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -23,7 +23,7 @@ BEGIN
MENUITEM "Pokračovať", ID_RESUME, GRAYED
MENUITEM "Reštartovať", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Obnoviť", ID_REFRESH
MENUITEM "Obnoviť\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Upraviť...", ID_EDIT, GRAYED
MENUITEM "Vytvoriť...", ID_CREATE, GRAYED
@ -68,6 +68,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Čo je Manažér služieb"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -23,7 +23,7 @@ BEGIN
MENUITEM "Rifillo", ID_RESUME, GRAYED
MENUITEM "Rifillo", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Rifesko", ID_REFRESH
MENUITEM "Rifesko\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Modifiko...", ID_EDIT, GRAYED
MENUITEM "Krijo...", ID_CREATE, GRAYED
@ -68,6 +68,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Rreth Menaxherit të Shërbimeve"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -25,7 +25,7 @@ BEGIN
MENUITEM "Fortsätta", ID_RESUME, GRAYED
MENUITEM "Starta om", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Uppdatera", ID_REFRESH
MENUITEM "Uppdatera\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Redigera...", ID_EDIT, GRAYED
MENUITEM "Skapa...", ID_CREATE, GRAYED
@ -70,6 +70,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Om Tjänster"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -26,7 +26,7 @@ BEGIN
MENUITEM "เริ่มทำต่อ", ID_RESUME, GRAYED
MENUITEM "เริ่มใหม่", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "ฟื้นฟู", ID_REFRESH
MENUITEM "ฟื้นฟู\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "แก้ไข...", ID_EDIT, GRAYED
MENUITEM "สร้าง...", ID_CREATE, GRAYED
@ -71,6 +71,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "เกี่ยวกับการบริการจัดการ"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -20,7 +20,7 @@ BEGIN
MENUITEM "&Sürdür", ID_RESUME, GRAYED
MENUITEM "&Yeniden Başlat", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Y&enile", ID_REFRESH
MENUITEM "Y&enile\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "De&ğiştir...", ID_EDIT, GRAYED
MENUITEM "&Oluştur...", ID_CREATE, GRAYED
@ -65,6 +65,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Himet Yöneticisi Üzerine"
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -26,7 +26,7 @@ BEGIN
MENUITEM "Продовжити", ID_RESUME, GRAYED
MENUITEM "Перезапуск", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "Оновити", ID_REFRESH
MENUITEM "Оновити\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "Правка...", ID_EDIT, GRAYED
MENUITEM "Створити...", ID_CREATE, GRAYED
@ -71,6 +71,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "Про програму ""Диспетчер керування службами"""
FONT 8, "MS Shell Dlg", 0, 0

View file

@ -20,7 +20,7 @@ BEGIN
MENUITEM "恢复", ID_RESUME, GRAYED
MENUITEM "重新启动", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "刷新", ID_REFRESH
MENUITEM "刷新\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "编辑...", ID_EDIT, GRAYED
MENUITEM "创建...", ID_CREATE, GRAYED
@ -65,6 +65,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "关于服务管理器"
FONT 9, "宋体", 0, 0

View file

@ -20,7 +20,7 @@ BEGIN
MENUITEM "恢復", ID_RESUME, GRAYED
MENUITEM "重新開機", ID_RESTART, GRAYED
MENUITEM SEPARATOR
MENUITEM "刷新", ID_REFRESH
MENUITEM "刷新\tF5", ID_REFRESH
MENUITEM SEPARATOR
MENUITEM "編輯...", ID_EDIT, GRAYED
MENUITEM "創建...", ID_CREATE, GRAYED
@ -65,6 +65,11 @@ BEGIN
END
END
IDA_SERVMAN ACCELERATORS
BEGIN
VK_F5, ID_REFRESH, VIRTKEY
END
IDD_ABOUTBOX DIALOGEX 22, 16, 190, 182
CAPTION "關於服務管理員"
FONT 9, "新細明體", 0, 0

View file

@ -2,6 +2,8 @@
#define IDC_STATIC -1
#define IDA_SERVMAN 20
/* about box info */
#define IDD_ABOUTBOX 200
#define IDC_LICENSE_EDIT 201

View file

@ -23,6 +23,7 @@ wWinMain(HINSTANCE hThisInstance,
{
LPWSTR lpAppName;
HWND hMainWnd;
HACCEL hAccelTable;
MSG Msg;
int Ret = 1;
INITCOMMONCONTROLSEX icex;
@ -51,6 +52,9 @@ wWinMain(HINSTANCE hThisInstance,
return 1;
}
hAccelTable = LoadAcceleratorsW(hInstance,
MAKEINTRESOURCEW(IDA_SERVMAN));
if (InitMainWindowImpl())
{
hMainWnd = CreateMainWindow(lpAppName,
@ -62,6 +66,7 @@ wWinMain(HINSTANCE hThisInstance,
{
//if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
//if (!IsDialogMessage(g_hProgDlg, &Msg))
if (!TranslateAcceleratorW(hMainWnd, hAccelTable, &Msg))
{
TranslateMessage(&Msg);
DispatchMessageW(&Msg);