From c83187e1302ee29ecbc000296ea255a3e20b15fc Mon Sep 17 00:00:00 2001 From: Anixx Date: Sat, 6 Jul 2024 12:19:03 +0300 Subject: [PATCH] Update clientedge-in-apps.wh.cpp + Internet Explorer --- mods/clientedge-in-apps.wh.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/mods/clientedge-in-apps.wh.cpp b/mods/clientedge-in-apps.wh.cpp index 5f3a9f6ab..ed0184f89 100644 --- a/mods/clientedge-in-apps.wh.cpp +++ b/mods/clientedge-in-apps.wh.cpp @@ -1,8 +1,8 @@ // ==WindhawkMod== // @id clientedge-in-apps -// @name Clientedge (3D border) in choosen apps -// @description Adds WS_EX_CLIENTEDGE style to some apps to look better in Classic theme. -// @version 1.0.0 +// @name Clientedge Everywhere +// @description Adds 3D border (WS_EX_CLIENTEDGE style) to some windows to look better in Classic theme. +// @version 1.1.0 // @author anixx // @github https://github.com/Anixx // @include * @@ -52,6 +52,15 @@ DWORD dwStyle,int X,int Y,int nWidth,int nHeight,HWND hWndParent,HMENU hMenu,HIN } } + // Internet Explorer + + if ((((ULONG_PTR)lpClassName & ~(ULONG_PTR)0xffff) != 0) && !wcscmp(lpClassName, L"Shell DocObject View")) { + GetClassNameW(hWndParent, wszClassName, 256); + if (!wcscmp(wszClassName, L"TabWindowClass")) { + dwExStyle |= WS_EX_CLIENTEDGE; + } + } + // Wolfram Mathematica if ((((ULONG_PTR)lpClassName & ~(ULONG_PTR)0xffff) != 0) && !wcscmp(lpClassName, L"NotebookContent")) {