ReactOS  0.4.15-dev-3733-g974a0f0
themes.c
Go to the documentation of this file.
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 */
30  }
31  return TRUE;
32 }
33 
34 #include <implement_shim.inl>
35 
#define TRUE
Definition: types.h:120
unsigned int BOOL
Definition: ntddk_ex.h:94
void WINAPI SetThemeAppProperties(DWORD dwFlags)
Definition: system.c:941
static PVOID ptr
Definition: dispmode.c:27
#define SHIM_REASON_INIT
Definition: shimlib.h:45
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI SHIM_OBJ_NAME() Notify(DWORD fdwReason, PVOID ptr)
Definition: themes.c:24