diff --git a/README.md b/README.md index d57e4ac..8e0362e 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Based on [SimpleClassicTheme.FileExplorerHook](https://github.com/AEAEAEAE4343/S ## Classic Theme Windows Forces Classic Theme on all Windows -Originally written by WinClassic user Travis. Added DWM disabler from BasicThemer2 for classic titlebars and Classic File Picker. +Originally written by WinClassic user Travis. ~~Added DWM disabler from BasicThemer2 for classic titlebars~~ (need to find a better method, I just don't know how) and Classic File Picker. ## ~~Classic File Picker~~ ~~Restores pre-Vista file picker. Requires Classic Theme Windows mod or else Windows just upgrades the dialog.~~ diff --git a/classic-theme-windows.wh.cpp b/classic-theme-windows.wh.cpp index 1013a38..bdce86f 100644 --- a/classic-theme-windows.wh.cpp +++ b/classic-theme-windows.wh.cpp @@ -47,7 +47,7 @@ Forces Classic Theme on all Windows DWORD thisPid = -1; // BasicThemer2 reimplementation to render classic titlebars -static const int DisableDWM = DWMNCRP_DISABLED; +/*static const int DisableDWM = DWMNCRP_DISABLED; static const int EnableDWM = DWMNCRP_ENABLED; void BasicThemerEnable(HWND hwnd) { @@ -99,7 +99,7 @@ BOOL CALLBACK DisableBasicThemerForAll(HWND hWnd, LPARAM lParam) { BasicThemerDisable(hWnd); return TRUE; -} +}*/ // File picker template @@ -134,7 +134,7 @@ BOOL Wh_ModInit() { SetThemeAppProperties(0); // BasicThemer hooks - Wh_SetFunctionHook((void*)CreateWindowExW, + /*Wh_SetFunctionHook((void*)CreateWindowExW, (void*)CreateWindowExW_Hook, (void**)&CreateWindowExW_Orig); Wh_SetFunctionHook((void*)CreateWindowExA, @@ -143,7 +143,7 @@ BOOL Wh_ModInit() { // Iterate every window to enable BasicThemer thisPid = GetProcessIdOfThread(GetCurrentThread()); - EnumWindows(EnableBasicThemerForAll, thisPid); + EnumWindows(EnableBasicThemerForAll, thisPid);*/ // File picker Wh_SetFunctionHook((void*)CoCreateInstance, (void*)CoCreateInstance_Hook, @@ -159,6 +159,6 @@ void Wh_ModUninit() { } // Iterate every window to disable BasicThemer - thisPid = GetProcessIdOfThread(GetCurrentThread()); - EnumWindows(DisableBasicThemerForAll, thisPid); + /*thisPid = GetProcessIdOfThread(GetCurrentThread()); + EnumWindows(DisableBasicThemerForAll, thisPid);*/ } \ No newline at end of file