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)
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);