mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-02-19 20:12:19 +01:00
Ability to hide the "Properties" item from the taskbar context menu
This commit is contained in:
parent
82da95b384
commit
321d76a440
@ -14,6 +14,7 @@ Tested on OS build 22000.434.
|
|||||||
* Option to disable `Office` hotkeys (`Ctrl`+`Alt`+`Shift`+`Windows` key combinations) (#661) (.4)
|
* Option to disable `Office` hotkeys (`Ctrl`+`Alt`+`Shift`+`Windows` key combinations) (#661) (.4)
|
||||||
* Simple Window Switcher can switch applications instead of windows (#665) (.5, .6)
|
* Simple Window Switcher can switch applications instead of windows (#665) (.5, .6)
|
||||||
* Option to disable rounded corners for windows (.7)
|
* Option to disable rounded corners for windows (.7)
|
||||||
|
* Ability to hide the "Properties" item from the taskbar context menu (.9)
|
||||||
|
|
||||||
#### Feature enhancements
|
#### Feature enhancements
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@ BOOL bDoNotRedirectProgramsAndFeaturesToSettingsApp = FALSE;
|
|||||||
BOOL bDoNotRedirectDateAndTimeToSettingsApp = FALSE;
|
BOOL bDoNotRedirectDateAndTimeToSettingsApp = FALSE;
|
||||||
BOOL bDoNotRedirectNotificationIconsToSettingsApp = FALSE;
|
BOOL bDoNotRedirectNotificationIconsToSettingsApp = FALSE;
|
||||||
BOOL bDisableOfficeHotkeys = FALSE;
|
BOOL bDisableOfficeHotkeys = FALSE;
|
||||||
|
DWORD bNoPropertiesInContextMenu = FALSE;
|
||||||
#define TASKBARGLOMLEVEL_DEFAULT 2
|
#define TASKBARGLOMLEVEL_DEFAULT 2
|
||||||
#define MMTASKBARGLOMLEVEL_DEFAULT 2
|
#define MMTASKBARGLOMLEVEL_DEFAULT 2
|
||||||
DWORD dwTaskbarGlomLevel = TASKBARGLOMLEVEL_DEFAULT;
|
DWORD dwTaskbarGlomLevel = TASKBARGLOMLEVEL_DEFAULT;
|
||||||
@ -1447,12 +1448,15 @@ HMENU explorer_LoadMenuW(HINSTANCE hInstance, LPCWSTR lpMenuName)
|
|||||||
menuInfo.fType = MFT_STRING;
|
menuInfo.fType = MFT_STRING;
|
||||||
menuInfo.dwTypeData = buffer;
|
menuInfo.dwTypeData = buffer;
|
||||||
menuInfo.cch = wcslen(buffer);
|
menuInfo.cch = wcslen(buffer);
|
||||||
InsertMenuItemW(
|
if (!bNoPropertiesInContextMenu)
|
||||||
hSubMenu,
|
{
|
||||||
GetMenuItemCount(hSubMenu) - 4,
|
InsertMenuItemW(
|
||||||
TRUE,
|
hSubMenu,
|
||||||
&menuInfo
|
GetMenuItemCount(hSubMenu) - 4,
|
||||||
);
|
TRUE,
|
||||||
|
&menuInfo
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return hMenu;
|
return hMenu;
|
||||||
@ -1764,12 +1768,15 @@ INT64 Shell_TrayWndSubclassProc(
|
|||||||
menuInfo.fType = MFT_STRING;
|
menuInfo.fType = MFT_STRING;
|
||||||
menuInfo.dwTypeData = buffer;
|
menuInfo.dwTypeData = buffer;
|
||||||
menuInfo.cch = wcslen(buffer);
|
menuInfo.cch = wcslen(buffer);
|
||||||
InsertMenuItemW(
|
if (!bNoPropertiesInContextMenu)
|
||||||
hSubMenu,
|
{
|
||||||
GetMenuItemCount(hSubMenu) - 1,
|
InsertMenuItemW(
|
||||||
TRUE,
|
hSubMenu,
|
||||||
&menuInfo
|
GetMenuItemCount(hSubMenu) - 1,
|
||||||
);
|
TRUE,
|
||||||
|
&menuInfo
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
INT64* unknown_array = NULL;
|
INT64* unknown_array = NULL;
|
||||||
if (bSkinMenus)
|
if (bSkinMenus)
|
||||||
@ -4363,6 +4370,15 @@ void WINAPI LoadSettings(LPARAM lParam)
|
|||||||
&dwSize
|
&dwSize
|
||||||
);
|
);
|
||||||
dwSize = sizeof(DWORD);
|
dwSize = sizeof(DWORD);
|
||||||
|
RegQueryValueExW(
|
||||||
|
hKey,
|
||||||
|
TEXT("NoPropertiesInContextMenu"),
|
||||||
|
0,
|
||||||
|
NULL,
|
||||||
|
&bNoPropertiesInContextMenu,
|
||||||
|
&dwSize
|
||||||
|
);
|
||||||
|
dwSize = sizeof(DWORD);
|
||||||
RegQueryValueExW(
|
RegQueryValueExW(
|
||||||
hKey,
|
hKey,
|
||||||
TEXT("NoMenuAccelerator"),
|
TEXT("NoMenuAccelerator"),
|
||||||
|
@ -433,6 +433,8 @@
|
|||||||
;d Enable SysListView32 for Explorer views *
|
;d Enable SysListView32 for Explorer views *
|
||||||
@=""
|
@=""
|
||||||
[HKEY_CURRENT_USER\Software\ExplorerPatcher]
|
[HKEY_CURRENT_USER\Software\ExplorerPatcher]
|
||||||
|
;b Do not show the program settings item ("Properties") in the taskbar context menu
|
||||||
|
"NoPropertiesInContextMenu"=dword:00000000
|
||||||
;b Enable symbols download *
|
;b Enable symbols download *
|
||||||
"EnableSymbolDownload"=dword:00000001
|
"EnableSymbolDownload"=dword:00000001
|
||||||
;i Do not hook Start menu from main Explorer process (permanently disabled) *
|
;i Do not hook Start menu from main Explorer process (permanently disabled) *
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#define VER_MAJOR 22000
|
#define VER_MAJOR 22000
|
||||||
#define VER_MINOR 434
|
#define VER_MINOR 434
|
||||||
#define VER_BUILD_HI 41
|
#define VER_BUILD_HI 41
|
||||||
#define VER_BUILD_LO 8
|
#define VER_BUILD_LO 9
|
||||||
#define VER_FLAGS VS_FF_PRERELEASE
|
#define VER_FLAGS VS_FF_PRERELEASE
|
||||||
|
|
||||||
|
|
||||||
@ -12,5 +12,5 @@
|
|||||||
#define VER_STR(arg) #arg
|
#define VER_STR(arg) #arg
|
||||||
|
|
||||||
// The String form of the version numbers
|
// The String form of the version numbers
|
||||||
#define VER_FILE_STRING VALUE "FileVersion", "22000.434.41.8"
|
#define VER_FILE_STRING VALUE "FileVersion", "22000.434.41.9"
|
||||||
#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.434.41.8"
|
#define VER_PRODUCT_STRING VALUE "ProductVersion", "22000.434.41.9"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user