From 5b3293bbf3f7f036b186a9436ffa325bd8b79178 Mon Sep 17 00:00:00 2001 From: Anixx Date: Wed, 22 Jan 2025 21:20:09 +0200 Subject: [PATCH] Update clientedge-in-apps.wh.cpp Add support for the Control Panel --- mods/clientedge-in-apps.wh.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mods/clientedge-in-apps.wh.cpp b/mods/clientedge-in-apps.wh.cpp index ae29d17c8..ea1bc4e1a 100644 --- a/mods/clientedge-in-apps.wh.cpp +++ b/mods/clientedge-in-apps.wh.cpp @@ -2,7 +2,7 @@ // @id clientedge-in-apps // @name Clientedge Everywhere // @description Adds 3D border (WS_EX_CLIENTEDGE style) to some windows to look better in Classic theme. -// @version 1.1.0 +// @version 1.2.0 // @author anixx // @github https://github.com/Anixx // @include * @@ -52,6 +52,17 @@ DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HIN } } + // Control Panel + + if ((((ULONG_PTR)lpClassName & ~(ULONG_PTR)0xffff) != 0) && !wcscmp(lpClassName, L"DUIViewWndClassName")) { + GetClassNameW(hWndParent, wszClassName, 256); + if (!wcscmp(wszClassName, L"ShellTabWindowClass")) { + GetClassNameW(GetParent(hWndParent), wszClassName, 256); + dwExStyle |= WS_EX_CLIENTEDGE; + } + } + + // Internet Explorer if ((((ULONG_PTR)lpClassName & ~(ULONG_PTR)0xffff) != 0) && !wcscmp(lpClassName, L"Shell DocObject View")) {