Browse Source

Add ability to toggle Control Center from Wi-Fi Icon (to remove clutter from taskbar's tray icons space)

pull/492/head
ggets 4 years ago
parent
commit
4f45ba66dd
  1. 15
      ExplorerPatcher/dllmain.c
  2. 3
      ExplorerPatcher/settings.reg

15
ExplorerPatcher/dllmain.c

@ -567,6 +567,19 @@ void LaunchNetworkTargets(DWORD dwTarget) @@ -567,6 +567,19 @@ void LaunchNetworkTargets(DWORD dwTarget)
{
InvokeFlyout(INVOKE_FLYOUT_SHOW, INVOKE_FLYOUT_NETWORK);
}
else if (dwTarget == 6)
{
InvokeActionCenter();
return 0;
// ShellExecuteW(
// NULL,
// L"open",
// L"ms-actioncenter:controlcenter/&showFooter=true",
// NULL,
// NULL,
// SW_SHOWNORMAL
// );
}
else if (dwTarget == 5)
{
ShellExecuteW(
@ -2668,7 +2681,7 @@ HRESULT pnidui_CoCreateInstanceHook( @@ -2668,7 +2681,7 @@ HRESULT pnidui_CoCreateInstanceHook(
{
if (dwVal)
{
if (dwVal == 5)
if (dwVal == 5 || dwVal == 6)
{
if (hCheckForegroundThread)
{

3
ExplorerPatcher/settings.reg

@ -87,7 +87,8 @@ @@ -87,7 +87,8 @@
"ReplaceNetwork"=dword:00000000
;t When clicking a system icon in the tray, open:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network]
;c 6 Network
;c 7 Network
;x 6 Control Center
;x 5 Windows 11 WiFi flyout
;x 0 Windows 10 flyout (default)
;x 2 Windows 8 flyout

Loading…
Cancel
Save