Skip to content

Commit

Permalink
Update clientedge-in-apps.wh.cpp
Browse files Browse the repository at this point in the history
Add support for the Control Panel
  • Loading branch information
Anixx authored Jan 22, 2025
1 parent 68d9676 commit 5b3293b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion mods/clientedge-in-apps.wh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit 5b3293b

Please sign in to comment.