ReactOS 0.4.15-dev-8100-g1887773
theme.c File Reference
#include "calc.h"
Include dependency graph for theme.c:

Go to the source code of this file.

Macros

#define GET_CB(name)
 

Functions

static HTHEME WINAPI dummy_OpenThemeData (HWND hwnd, const WCHAR *pszClassList)
 
static HRESULT WINAPI dummy_CloseThemeData (HTHEME hTheme)
 
static HRESULT WINAPI dummy_DrawThemeBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *prc, const RECT *prcClip)
 
static BOOL WINAPI dummy_IsAppThemed (void)
 
static BOOL WINAPI dummy_IsThemeActive (void)
 
static BOOL WINAPI dummy_IsThemeBackgroundPartiallyTransparent (HTHEME hTheme, int iPartId, int iStateId)
 
static HRESULT WINAPI dummy_DrawThemeParentBackground (HWND hWnd, HDC hdc, RECT *prc)
 
void Theme_Start (HINSTANCE hInstance)
 
void Theme_Stop (void)
 

Variables

type_OpenThemeData calc_OpenThemeData = dummy_OpenThemeData
 
type_CloseThemeData calc_CloseThemeData = dummy_CloseThemeData
 
type_DrawThemeBackground calc_DrawThemeBackground = dummy_DrawThemeBackground
 
type_IsAppThemed calc_IsAppThemed = dummy_IsAppThemed
 
type_IsThemeActive calc_IsThemeActive = dummy_IsThemeActive
 
type_IsThemeBackgroundPartiallyTransparent calc_IsThemeBackgroundPartiallyTransparent
 
type_DrawThemeParentBackground calc_DrawThemeParentBackground
 
static HMODULE hUxTheme
 

Macro Definition Documentation

◆ GET_CB

#define GET_CB (   name)
Value:
calc_##name = (type_##name)GetProcAddress(hUxTheme, #name); \
if (calc_##name == NULL) calc_##name = dummy_##name;
static HMODULE hUxTheme
Definition: theme.c:60
#define NULL
Definition: types.h:112
#define GetProcAddress(x, y)
Definition: compat.h:753
Definition: name.c:39

Definition at line 23 of file theme.c.

Function Documentation

◆ dummy_CloseThemeData()

static HRESULT WINAPI dummy_CloseThemeData ( HTHEME  hTheme)
static

Definition at line 69 of file theme.c.

70{
71 return E_NOTIMPL;
72}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ dummy_DrawThemeBackground()

static HRESULT WINAPI dummy_DrawThemeBackground ( HTHEME  hTheme,
HDC  hdc,
int  iPartId,
int  iStateId,
const RECT prc,
const RECT prcClip 
)
static

Definition at line 75 of file theme.c.

77{
78 return E_NOTIMPL;
79}

◆ dummy_DrawThemeParentBackground()

static HRESULT WINAPI dummy_DrawThemeParentBackground ( HWND  hWnd,
HDC  hdc,
RECT prc 
)
static

Definition at line 100 of file theme.c.

101{
102 return E_NOTIMPL;
103}

◆ dummy_IsAppThemed()

static BOOL WINAPI dummy_IsAppThemed ( void  )
static

Definition at line 82 of file theme.c.

83{
84 return FALSE;
85}
#define FALSE
Definition: types.h:117

◆ dummy_IsThemeActive()

static BOOL WINAPI dummy_IsThemeActive ( void  )
static

Definition at line 88 of file theme.c.

89{
90 return FALSE;
91}

◆ dummy_IsThemeBackgroundPartiallyTransparent()

static BOOL WINAPI dummy_IsThemeBackgroundPartiallyTransparent ( HTHEME  hTheme,
int  iPartId,
int  iStateId 
)
static

Definition at line 94 of file theme.c.

95{
96 return FALSE;
97}

◆ dummy_OpenThemeData()

static HTHEME WINAPI dummy_OpenThemeData ( HWND  hwnd,
const WCHAR pszClassList 
)
static

Definition at line 63 of file theme.c.

64{
65 return NULL;
66}

◆ Theme_Start()

void Theme_Start ( HINSTANCE  hInstance)

Definition at line 105 of file theme.c.

106{
107 hUxTheme = LoadLibrary(_T("UXTHEME"));
108 if (hUxTheme == NULL)
109 return;
110
118}
#define GET_CB(name)
Definition: theme.c:23
HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
Definition: draw.c:128
BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId, int iStateId)
Definition: draw.c:1883
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
Definition: draw.c:72
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
Definition: system.c:835
BOOL WINAPI IsThemeActive(void)
Definition: system.c:606
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
Definition: system.c:950
BOOL WINAPI IsAppThemed(void)
Definition: system.c:596
#define _T(x)
Definition: vfdio.h:22
#define LoadLibrary
Definition: winbase.h:3862

Referenced by _tWinMain().

◆ Theme_Stop()

void Theme_Stop ( void  )

Definition at line 120 of file theme.c.

121{
122 if(hUxTheme == NULL)
123 return;
124
126 hUxTheme = NULL;
127}
#define FreeLibrary(x)
Definition: compat.h:748

Referenced by _tWinMain().

Variable Documentation

◆ calc_CloseThemeData

Definition at line 51 of file theme.c.

Referenced by SubclassButtonProc().

◆ calc_DrawThemeBackground

Definition at line 52 of file theme.c.

Referenced by SubclassButtonProc().

◆ calc_DrawThemeParentBackground

type_DrawThemeParentBackground calc_DrawThemeParentBackground
Initial value:
=
static HRESULT WINAPI dummy_DrawThemeParentBackground(HWND hWnd, HDC hdc, RECT *prc)
Definition: theme.c:100

Definition at line 57 of file theme.c.

Referenced by SubclassButtonProc().

◆ calc_IsAppThemed

type_IsAppThemed calc_IsAppThemed = dummy_IsAppThemed

Definition at line 53 of file theme.c.

Referenced by SubclassButtonProc().

◆ calc_IsThemeActive

Definition at line 54 of file theme.c.

Referenced by SubclassButtonProc().

◆ calc_IsThemeBackgroundPartiallyTransparent

type_IsThemeBackgroundPartiallyTransparent calc_IsThemeBackgroundPartiallyTransparent
Initial value:
=
static BOOL WINAPI dummy_IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId, int iStateId)
Definition: theme.c:94

Definition at line 55 of file theme.c.

Referenced by SubclassButtonProc().

◆ calc_OpenThemeData

Definition at line 50 of file theme.c.

Referenced by SubclassButtonProc().

◆ hUxTheme

HMODULE hUxTheme
static

Definition at line 60 of file theme.c.

Referenced by Theme_Start(), and Theme_Stop().