Show Open-Shell version in start context menu

Fixes #888.
This commit is contained in:
ge0rdi
2022-11-01 11:43:05 +01:00
parent 7f6b7229f6
commit 9397d58986
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -3861,9 +3861,13 @@ if (!g_bTrimHooks)
// right-click on the start button - open the context menu (Settings, Help, Exit) // right-click on the start button - open the context menu (Settings, Help, Exit)
HMENU menu=CreatePopupMenu(); HMENU menu=CreatePopupMenu();
CString title=LoadStringEx(IDS_MENU_TITLE); CString titleFmt=LoadStringEx(IDS_MENU_TITLE);
if (!title.IsEmpty()) if (!titleFmt.IsEmpty())
{ {
CString title;
DWORD ver=GetVersionEx(g_Instance);
title.Format(titleFmt,ver>>24,(ver>>16)&0xFF,ver&0xFFFF);
AppendMenu(menu,MF_STRING,0,title); AppendMenu(menu,MF_STRING,0,title);
EnableMenuItem(menu,0,MF_BYPOSITION|MF_DISABLED); EnableMenuItem(menu,0,MF_BYPOSITION|MF_DISABLED);
SetMenuDefaultItem(menu,0,TRUE); SetMenuDefaultItem(menu,0,TRUE);
+1 -1
View File
@@ -427,7 +427,7 @@ BEGIN
IDS_SKIN_ERR_LOAD_FILE "Failed to load the variation skin file %s.\r\n" IDS_SKIN_ERR_LOAD_FILE "Failed to load the variation skin file %s.\r\n"
IDS_SKIN_ERR_LOAD "Error loading %s\n%s" IDS_SKIN_ERR_LOAD "Error loading %s\n%s"
IDS_SKIN_ERR_VERSION "The selected skin is not compatible with this version of the start menu.\r\n" IDS_SKIN_ERR_VERSION "The selected skin is not compatible with this version of the start menu.\r\n"
IDS_MENU_TITLE "== Open-Shell Menu ==" IDS_MENU_TITLE "Open-Shell Menu %d.%d.%d"
IDS_DEFAULT_SKIN "<No Skin>" IDS_DEFAULT_SKIN "<No Skin>"
IDS_CONTROLS_SETTINGS "Controls" IDS_CONTROLS_SETTINGS "Controls"
IDS_OPEN_NOTHING "Nothing" IDS_OPEN_NOTHING "Nothing"