i still have no idea what im doing when it comes to trying to disable dwm, this is still unstable...

This commit is contained in:
Cynthia Foxwell 2023-03-17 10:04:21 -06:00
parent 81b37cd193
commit cdefcc6986
2 changed files with 7 additions and 7 deletions

View File

@ -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.~~

View File

@ -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<class S>
@ -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);*/
}