From 451db3c5b65bec09a288084bb8056fbb0ae2a446 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Thu, 17 Nov 2022 03:13:27 +0200 Subject: [PATCH] Taskbar11: Option to use the stock taskbar context menu --- ExplorerPatcher/dllmain.c | 3 ++- ExplorerPatcher/settings.reg | 2 +- ExplorerPatcher/settings10.reg | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index a2e89a7..f1647f5 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -2349,7 +2349,8 @@ LRESULT CALLBACK Shell_TrayWndMouseProc( _In_ LPARAM lParam ) { - if (!bOldTaskbar && + if (!bOldTaskbar && + !bNoPropertiesInContextMenu && nCode == HC_ACTION && wParam == WM_RBUTTONUP && IsPointOnEmptyAreaOfNewTaskbar(((MOUSEHOOKSTRUCT*)lParam)->pt) diff --git a/ExplorerPatcher/settings.reg b/ExplorerPatcher/settings.reg index 1425538..eba4489 100644 --- a/ExplorerPatcher/settings.reg +++ b/ExplorerPatcher/settings.reg @@ -725,7 +725,7 @@ ;d Enable SysListView32 for Explorer views * @="" [HKEY_CURRENT_USER\Software\ExplorerPatcher] -;b Hide the program settings item ("Properties") from the taskbar context menu +;b Do not change the taskbar context menu (e.g. do not display the "Properties" item) "NoPropertiesInContextMenu"=dword:00000000 ;b Enable symbols download * "EnableSymbolDownload"=dword:00000001 diff --git a/ExplorerPatcher/settings10.reg b/ExplorerPatcher/settings10.reg index a7788a7..323ca81 100644 --- a/ExplorerPatcher/settings10.reg +++ b/ExplorerPatcher/settings10.reg @@ -560,7 +560,7 @@ ;d Enable SysListView32 for Explorer views * @="" [HKEY_CURRENT_USER\Software\ExplorerPatcher] -;b Hide the program settings item ("Properties") from the taskbar context menu +;b Do not change the taskbar context menu (e.g. do not display the "Properties" item) "NoPropertiesInContextMenu"=dword:00000000 ;b Enable symbols download * "EnableSymbolDownload"=dword:00000001