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

View File

@@ -3861,9 +3861,13 @@ if (!g_bTrimHooks)
// right-click on the start button - open the context menu (Settings, Help, Exit)
HMENU menu=CreatePopupMenu();
CString title=LoadStringEx(IDS_MENU_TITLE);
if (!title.IsEmpty())
CString titleFmt=LoadStringEx(IDS_MENU_TITLE);
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);
EnableMenuItem(menu,0,MF_BYPOSITION|MF_DISABLED);
SetMenuDefaultItem(menu,0,TRUE);

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 "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_MENU_TITLE "== Open-Shell Menu =="
IDS_MENU_TITLE "Open-Shell Menu %d.%d.%d"
IDS_DEFAULT_SKIN "<No Skin>"
IDS_CONTROLS_SETTINGS "Controls"
IDS_OPEN_NOTHING "Nothing"