1 /* 2 * PROJECT: ReactOS 'General' Shim library 3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) 4 * PURPOSE: Theme related shims 5 * COPYRIGHT: Copyright 2016,2017 Mark Jansen (mark.jansen@reactos.org) 6 */ 7 8 #define WIN32_NO_STATUS 9 #include <windef.h> 10 #include <winbase.h> 11 #include <winuser.h> 12 #include <wingdi.h> 13 #include <shimlib.h> 14 #include <strsafe.h> 15 #include <uxtheme.h> 16 17 18 #define SHIM_NS DisableThemes 19 #include <setup_shim.inl> 20 21 #define SHIM_NUM_HOOKS 0 22 #define SHIM_NOTIFY_FN SHIM_OBJ_NAME(Notify) 23 24 BOOL WINAPI SHIM_OBJ_NAME(Notify)(DWORD fdwReason, PVOID ptr) 25 { 26 if (fdwReason == SHIM_REASON_INIT) 27 { 28 /* Disable themes for non-client, comctl controls and webcontent */ 29 SetThemeAppProperties(0); 30 } 31 return TRUE; 32 } 33 34 #include <implement_shim.inl> 35 36