2016-12-16 22:05:58 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS Shim library
|
|
|
|
* FILE: dll/appcompat/shims/genral/themes.c
|
|
|
|
* PURPOSE: Theme related shims
|
2017-08-05 12:05:06 +00:00
|
|
|
* PROGRAMMER: Mark Jansen (mark.jansen@reactos.org)
|
2016-12-16 22:05:58 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <windows.h>
|
|
|
|
#include <shimlib.h>
|
|
|
|
#include <strsafe.h>
|
|
|
|
#include <uxtheme.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define SHIM_NS DisableThemes
|
|
|
|
#include <setup_shim.inl>
|
|
|
|
|
|
|
|
#define SHIM_NUM_HOOKS 0
|
|
|
|
#define SHIM_NOTIFY_FN SHIM_OBJ_NAME(Notify)
|
|
|
|
|
|
|
|
BOOL WINAPI SHIM_OBJ_NAME(Notify)(DWORD fdwReason, PVOID ptr)
|
|
|
|
{
|
|
|
|
if (fdwReason == SHIM_REASON_INIT)
|
|
|
|
{
|
2017-08-05 12:05:06 +00:00
|
|
|
/* Disable themes for non-client, comctl controls and webcontent */
|
2016-12-16 22:05:58 +00:00
|
|
|
SetThemeAppProperties(0);
|
|
|
|
}
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
#include <implement_shim.inl>
|
|
|
|
|