Skip to content

Commit

Permalink
Update clientedge-in-apps.wh.cpp
Browse files Browse the repository at this point in the history
+ Internet Explorer
  • Loading branch information
Anixx authored Jul 6, 2024
1 parent b5539c2 commit c83187e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions mods/clientedge-in-apps.wh.cpp
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit c83187e

Please sign in to comment.