Skip to content

Commit 9397d58

Browse files
committed
Show Open-Shell version in start context menu
Fixes #888.
1 parent 7f6b722 commit 9397d58

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3861,9 +3861,13 @@ if (!g_bTrimHooks)
38613861

38623862
// right-click on the start button - open the context menu (Settings, Help, Exit)
38633863
HMENU menu=CreatePopupMenu();
3864-
CString title=LoadStringEx(IDS_MENU_TITLE);
3865-
if (!title.IsEmpty())
3864+
CString titleFmt=LoadStringEx(IDS_MENU_TITLE);
3865+
if (!titleFmt.IsEmpty())
38663866
{
3867+
CString title;
3868+
DWORD ver=GetVersionEx(g_Instance);
3869+
title.Format(titleFmt,ver>>24,(ver>>16)&0xFF,ver&0xFFFF);
3870+
38673871
AppendMenu(menu,MF_STRING,0,title);
38683872
EnableMenuItem(menu,0,MF_BYPOSITION|MF_DISABLED);
38693873
SetMenuDefaultItem(menu,0,TRUE);

Src/StartMenu/StartMenuDLL/StartMenuDLL.rc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ BEGIN
427427
IDS_SKIN_ERR_LOAD_FILE "Failed to load the variation skin file %s.\r\n"
428428
IDS_SKIN_ERR_LOAD "Error loading %s\n%s"
429429
IDS_SKIN_ERR_VERSION "The selected skin is not compatible with this version of the start menu.\r\n"
430-
IDS_MENU_TITLE "== Open-Shell Menu =="
430+
IDS_MENU_TITLE "Open-Shell Menu %d.%d.%d"
431431
IDS_DEFAULT_SKIN "<No Skin>"
432432
IDS_CONTROLS_SETTINGS "Controls"
433433
IDS_OPEN_NOTHING "Nothing"

0 commit comments

Comments
 (0)