From e4bfe8f78bd359e0a2fa9e6ca4bdbd105ea2b78d Mon Sep 17 00:00:00 2001 From: Jose Carlos Jesus Date: Sat, 17 Jul 2021 18:26:48 +0100 Subject: [PATCH] [EVENTVWR] Add a context menu to TreeView items. (#3828) Same as in Windows XP/2003. + Specify a default extension when opening or saving an event-log file. --- .../applications/mscutils/eventvwr/eventvwr.c | 33 +++++++++++++++++-- .../mscutils/eventvwr/lang/bg-BG.rc | 13 ++++++++ .../mscutils/eventvwr/lang/cs-CZ.rc | 13 ++++++++ .../mscutils/eventvwr/lang/de-DE.rc | 13 ++++++++ .../mscutils/eventvwr/lang/el-GR.rc | 13 ++++++++ .../mscutils/eventvwr/lang/en-US.rc | 13 ++++++++ .../mscutils/eventvwr/lang/es-ES.rc | 13 ++++++++ .../mscutils/eventvwr/lang/fr-FR.rc | 13 ++++++++ .../mscutils/eventvwr/lang/he-IL.rc | 13 ++++++++ .../mscutils/eventvwr/lang/it-IT.rc | 13 ++++++++ .../mscutils/eventvwr/lang/ja-JP.rc | 13 ++++++++ .../mscutils/eventvwr/lang/ko-KR.rc | 13 ++++++++ .../mscutils/eventvwr/lang/no-NO.rc | 13 ++++++++ .../mscutils/eventvwr/lang/pl-PL.rc | 13 ++++++++ .../mscutils/eventvwr/lang/pt-BR.rc | 13 ++++++++ .../mscutils/eventvwr/lang/pt-PT.rc | 13 ++++++++ .../mscutils/eventvwr/lang/ro-RO.rc | 13 ++++++++ .../mscutils/eventvwr/lang/ru-RU.rc | 13 ++++++++ .../mscutils/eventvwr/lang/sk-SK.rc | 13 ++++++++ .../mscutils/eventvwr/lang/sq-AL.rc | 13 ++++++++ .../mscutils/eventvwr/lang/sv-SE.rc | 13 ++++++++ .../mscutils/eventvwr/lang/tr-TR.rc | 13 ++++++++ .../mscutils/eventvwr/lang/uk-UA.rc | 13 ++++++++ .../mscutils/eventvwr/lang/zh-CN.rc | 13 ++++++++ .../mscutils/eventvwr/lang/zh-TW.rc | 13 ++++++++ .../applications/mscutils/eventvwr/resource.h | 1 + 26 files changed, 343 insertions(+), 3 deletions(-) diff --git a/base/applications/mscutils/eventvwr/eventvwr.c b/base/applications/mscutils/eventvwr/eventvwr.c index 94e67095b73..fad78d4e3bc 100644 --- a/base/applications/mscutils/eventvwr/eventvwr.c +++ b/base/applications/mscutils/eventvwr/eventvwr.c @@ -3271,7 +3271,7 @@ InitInstance(HINSTANCE hInstance) sfn.lpstrFilter = szSaveFilter; sfn.lpstrInitialDir = NULL; sfn.Flags = OFN_EXPLORER | OFN_HIDEREADONLY | OFN_SHAREAWARE; - sfn.lpstrDefExt = NULL; + sfn.lpstrDefExt = L"evt"; ShowWindow(hwndMainWindow, Settings.wpPos.showCmd); UpdateWindow(hwndMainWindow); @@ -3673,11 +3673,38 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) case WM_INITMENUPOPUP: lParam = lParam; break; +#endif case WM_CONTEXTMENU: - lParam = lParam; + { + RECT rc; + HTREEITEM hItem; + TVHITTESTINFO hInfo = {0}; + + INT xPos = GET_X_LPARAM(lParam); + INT yPos = GET_Y_LPARAM(lParam); + + GetWindowRect(hwndTreeView, &rc); + hInfo.pt.x = xPos - rc.left; + hInfo.pt.y = yPos - rc.top; + + hItem = TreeView_HitTest(hwndTreeView, &hInfo); + if (hItem) + { + TreeView_SelectItem(hwndTreeView, hItem); + + if (TreeView_GetParent(hwndTreeView, hItem)) + { + HMENU hCtxMenu = GetSubMenu(LoadMenuW(hInst, MAKEINTRESOURCEW(IDM_EVENTWR_CTX)), 0); + + DWORD dwCmdID = TrackPopupMenuEx(hCtxMenu, + TPM_LEFTALIGN | TPM_TOPALIGN | TPM_NONOTIFY | TPM_RETURNCMD, + xPos, yPos, hWnd, NULL); + SendMessageW(hWnd, WM_COMMAND, (WPARAM)dwCmdID, (LPARAM)hwndTreeView); + } + } break; -#endif + } case WM_SETCURSOR: { diff --git a/base/applications/mscutils/eventvwr/lang/bg-BG.rc b/base/applications/mscutils/eventvwr/lang/bg-BG.rc index 3dd9bcca011..8c0f17dcb8c 100644 --- a/base/applications/mscutils/eventvwr/lang/bg-BG.rc +++ b/base/applications/mscutils/eventvwr/lang/bg-BG.rc @@ -38,6 +38,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/cs-CZ.rc b/base/applications/mscutils/eventvwr/lang/cs-CZ.rc index 391c6ac3fbc..d81bdeb866e 100644 --- a/base/applications/mscutils/eventvwr/lang/cs-CZ.rc +++ b/base/applications/mscutils/eventvwr/lang/cs-CZ.rc @@ -38,6 +38,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/de-DE.rc b/base/applications/mscutils/eventvwr/lang/de-DE.rc index 41157b6fc57..15d7513c4bd 100644 --- a/base/applications/mscutils/eventvwr/lang/de-DE.rc +++ b/base/applications/mscutils/eventvwr/lang/de-DE.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/el-GR.rc b/base/applications/mscutils/eventvwr/lang/el-GR.rc index 87a7f74ebfd..7a3f50ade65 100644 --- a/base/applications/mscutils/eventvwr/lang/el-GR.rc +++ b/base/applications/mscutils/eventvwr/lang/el-GR.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/en-US.rc b/base/applications/mscutils/eventvwr/lang/en-US.rc index c46d2aed5c0..7c0ab9ad289 100644 --- a/base/applications/mscutils/eventvwr/lang/en-US.rc +++ b/base/applications/mscutils/eventvwr/lang/en-US.rc @@ -46,6 +46,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/es-ES.rc b/base/applications/mscutils/eventvwr/lang/es-ES.rc index a3b07afa669..61b25f5f5a6 100644 --- a/base/applications/mscutils/eventvwr/lang/es-ES.rc +++ b/base/applications/mscutils/eventvwr/lang/es-ES.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/fr-FR.rc b/base/applications/mscutils/eventvwr/lang/fr-FR.rc index 4fe1bc9a56c..72ae329631f 100644 --- a/base/applications/mscutils/eventvwr/lang/fr-FR.rc +++ b/base/applications/mscutils/eventvwr/lang/fr-FR.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/he-IL.rc b/base/applications/mscutils/eventvwr/lang/he-IL.rc index 60628fc6fa0..cc3aeafe816 100644 --- a/base/applications/mscutils/eventvwr/lang/he-IL.rc +++ b/base/applications/mscutils/eventvwr/lang/he-IL.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/it-IT.rc b/base/applications/mscutils/eventvwr/lang/it-IT.rc index 4f16211f663..9ab86233288 100644 --- a/base/applications/mscutils/eventvwr/lang/it-IT.rc +++ b/base/applications/mscutils/eventvwr/lang/it-IT.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/ja-JP.rc b/base/applications/mscutils/eventvwr/lang/ja-JP.rc index 48b1bb86c1c..36b294476ee 100644 --- a/base/applications/mscutils/eventvwr/lang/ja-JP.rc +++ b/base/applications/mscutils/eventvwr/lang/ja-JP.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/ko-KR.rc b/base/applications/mscutils/eventvwr/lang/ko-KR.rc index 39f6f6a50c1..fd59e816a82 100644 --- a/base/applications/mscutils/eventvwr/lang/ko-KR.rc +++ b/base/applications/mscutils/eventvwr/lang/ko-KR.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/no-NO.rc b/base/applications/mscutils/eventvwr/lang/no-NO.rc index 345d3c9dc21..3d4c5510fc3 100644 --- a/base/applications/mscutils/eventvwr/lang/no-NO.rc +++ b/base/applications/mscutils/eventvwr/lang/no-NO.rc @@ -38,6 +38,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/pl-PL.rc b/base/applications/mscutils/eventvwr/lang/pl-PL.rc index dbd32e5235e..d5776b7d000 100644 --- a/base/applications/mscutils/eventvwr/lang/pl-PL.rc +++ b/base/applications/mscutils/eventvwr/lang/pl-PL.rc @@ -42,6 +42,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/pt-BR.rc b/base/applications/mscutils/eventvwr/lang/pt-BR.rc index 470eb9ef43e..0928635bbe0 100644 --- a/base/applications/mscutils/eventvwr/lang/pt-BR.rc +++ b/base/applications/mscutils/eventvwr/lang/pt-BR.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/pt-PT.rc b/base/applications/mscutils/eventvwr/lang/pt-PT.rc index e772a447c92..5e5f06808a9 100644 --- a/base/applications/mscutils/eventvwr/lang/pt-PT.rc +++ b/base/applications/mscutils/eventvwr/lang/pt-PT.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Abrir o ficheiro de registo...", IDM_OPEN_EVENTLOG + MENUITEM "&Guardar ficheiro de registo como...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Limpar todos os Eventos", IDM_CLEAR_EVENTS + MENUITEM "&Alterar o nome\tF2", IDM_RENAME_EVENTLOG + MENUITEM "&Definições...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/ro-RO.rc b/base/applications/mscutils/eventvwr/lang/ro-RO.rc index 376cee163f2..d58eef4cd48 100644 --- a/base/applications/mscutils/eventvwr/lang/ro-RO.rc +++ b/base/applications/mscutils/eventvwr/lang/ro-RO.rc @@ -43,6 +43,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/ru-RU.rc b/base/applications/mscutils/eventvwr/lang/ru-RU.rc index ab2c5dddd69..2707591fb6d 100644 --- a/base/applications/mscutils/eventvwr/lang/ru-RU.rc +++ b/base/applications/mscutils/eventvwr/lang/ru-RU.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/sk-SK.rc b/base/applications/mscutils/eventvwr/lang/sk-SK.rc index 072972af511..fd82f2a3224 100644 --- a/base/applications/mscutils/eventvwr/lang/sk-SK.rc +++ b/base/applications/mscutils/eventvwr/lang/sk-SK.rc @@ -43,6 +43,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/sq-AL.rc b/base/applications/mscutils/eventvwr/lang/sq-AL.rc index 7138479a413..b15aa7a76a7 100644 --- a/base/applications/mscutils/eventvwr/lang/sq-AL.rc +++ b/base/applications/mscutils/eventvwr/lang/sq-AL.rc @@ -46,6 +46,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/sv-SE.rc b/base/applications/mscutils/eventvwr/lang/sv-SE.rc index 56e5e79f08a..8b49756f82c 100644 --- a/base/applications/mscutils/eventvwr/lang/sv-SE.rc +++ b/base/applications/mscutils/eventvwr/lang/sv-SE.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/tr-TR.rc b/base/applications/mscutils/eventvwr/lang/tr-TR.rc index 0d1cc0c44b7..f3e9612e7ab 100644 --- a/base/applications/mscutils/eventvwr/lang/tr-TR.rc +++ b/base/applications/mscutils/eventvwr/lang/tr-TR.rc @@ -46,6 +46,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/uk-UA.rc b/base/applications/mscutils/eventvwr/lang/uk-UA.rc index 0ee63800b8e..67fdb14f99e 100644 --- a/base/applications/mscutils/eventvwr/lang/uk-UA.rc +++ b/base/applications/mscutils/eventvwr/lang/uk-UA.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/zh-CN.rc b/base/applications/mscutils/eventvwr/lang/zh-CN.rc index 89a4193cf21..d4d4bf3a668 100644 --- a/base/applications/mscutils/eventvwr/lang/zh-CN.rc +++ b/base/applications/mscutils/eventvwr/lang/zh-CN.rc @@ -40,6 +40,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/lang/zh-TW.rc b/base/applications/mscutils/eventvwr/lang/zh-TW.rc index 7e8a4fc39fe..ff4e3d26026 100644 --- a/base/applications/mscutils/eventvwr/lang/zh-TW.rc +++ b/base/applications/mscutils/eventvwr/lang/zh-TW.rc @@ -41,6 +41,19 @@ BEGIN END END +IDM_EVENTWR_CTX MENU +BEGIN + POPUP "" + BEGIN + MENUITEM "&Open Event Log...", IDM_OPEN_EVENTLOG + MENUITEM "&Save Event Log as...", IDM_SAVE_EVENTLOG + MENUITEM SEPARATOR + MENUITEM "&Clear all Events", IDM_CLEAR_EVENTS + MENUITEM "&Rename\tF2", IDM_RENAME_EVENTLOG + MENUITEM "Log Se&ttings...", IDM_EVENTLOG_SETTINGS + END +END + IDA_EVENTVWR ACCELERATORS BEGIN "?", IDM_ABOUT, ASCII, ALT diff --git a/base/applications/mscutils/eventvwr/resource.h b/base/applications/mscutils/eventvwr/resource.h index 7cc384c7669..db8f341b9a1 100644 --- a/base/applications/mscutils/eventvwr/resource.h +++ b/base/applications/mscutils/eventvwr/resource.h @@ -79,6 +79,7 @@ #define IDM_SAVE_SETTINGS 32784 #define IDM_HELP 32785 #define IDM_ABOUT 32786 +#define IDM_EVENTWR_CTX 32787 /* String IDs */