diff --git a/mods/classic-taskbar-background-fix.wh.cpp b/mods/classic-taskbar-background-fix.wh.cpp index 3d34b2b9b..1faa5d971 100644 --- a/mods/classic-taskbar-background-fix.wh.cpp +++ b/mods/classic-taskbar-background-fix.wh.cpp @@ -65,11 +65,24 @@ I would like to thank @Anixx for testing the mod during its development and illu // ==/WindhawkModSettings== +#include +#include //defines HRESULT, needed for Visual Studio intellisense only, in clang the HRESULT seems to be defined already elsewhere, but the include does not harm either +//#include //currently not needed since we use our own declaration of DrawThemeParentBackground and DrawThemeParentBackgroundEx + #include #include #include //std::nothrow -#include -#include + + + +template +BOOL Wh_SetFunctionHookT( + FARPROC targetFunction, + T hookFunction, + T* originalFunction +) { + return Wh_SetFunctionHook((void*)targetFunction, (void*)hookFunction, (void**)originalFunction); +} //clang compiler does not have these macros defined. Definitions taken from @@ -94,16 +107,6 @@ enum class CompatWithTaskbarButtonsModsConfig { }; -template -BOOL Wh_SetFunctionHookT( - FARPROC targetFunction, - T hookFunction, - T* originalFunction -) { - return Wh_SetFunctionHook((void*)targetFunction, (void*)hookFunction, (void**)originalFunction); -} - - const COLORREF black = RGB(0, 0, 0); const int blackColorIndex = -1; //mod's internal code for black colour