2016-12-16 22:05:58 +00:00
|
|
|
/*
|
2017-09-08 20:29:16 +00:00
|
|
|
* PROJECT: ReactOS 'General' Shim library
|
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
|
|
* PURPOSE: Theme related shims
|
|
|
|
* COPYRIGHT: Copyright 2016,2017 Mark Jansen (mark.jansen@reactos.org)
|
2016-12-16 22:05:58 +00:00
|
|
|
*/
|
|
|
|
|
2017-09-08 20:29:16 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <wingdi.h>
|
2016-12-16 22:05:58 +00:00
|
|
|
#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>
|
|
|
|
|