From 9bf60309c098eaa15e0aa8082d9a96e684ed6074 Mon Sep 17 00:00:00 2001 From: Valentin Radu Date: Sat, 28 May 2022 12:54:36 +0300 Subject: [PATCH] General: Export variable that tells if desktop is in foreground --- ExplorerPatcher/dllmain.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ExplorerPatcher/dllmain.c b/ExplorerPatcher/dllmain.c index 5b66ce3..7cca972 100644 --- a/ExplorerPatcher/dllmain.c +++ b/ExplorerPatcher/dllmain.c @@ -190,7 +190,7 @@ DWORD S_Icon_Dark_TaskView = 0; void* P_Icon_Dark_Widgets = NULL; DWORD S_Icon_Dark_Widgets = 0; - +BOOL g_bIsDesktopRaised = FALSE; #include "utility.h" #include "resource.h" @@ -2424,6 +2424,10 @@ INT64 Shell_TrayWndSubclassProc( DestroyMenu(hMenu); } } + else if (uMsg == 1368) + { + g_bIsDesktopRaised = (lParam & 1) == 0; + } return DefSubclassProc(hWnd, uMsg, wParam, lParam); } #endif