ReactOS  0.4.13-dev-455-g28ed234
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;
smooth NULL
Definition: ftsmooth.c:416
Definition: name.c:36
#define GetProcAddress(x, y)
Definition: compat.h:410
static HMODULE hUxTheme
Definition: theme.c:60
GLuint const GLchar * name
Definition: glext.h:6031

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 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ 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 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ dummy_IsAppThemed()

static BOOL WINAPI dummy_IsAppThemed ( void  )
static

Definition at line 82 of file theme.c.

83 {
84  return FALSE;
85 }

◆ 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 }
smooth NULL
Definition: ftsmooth.c:416

◆ 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 LoadLibrary
Definition: winbase.h:3676
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
BOOL WINAPI IsAppThemed(void)
Definition: system.c:596
#define GET_CB(name)
Definition: theme.c:23
smooth NULL
Definition: ftsmooth.c:416
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
Definition: draw.c:72
#define _T(x)
Definition: vfdio.h:22
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
Definition: system.c:835
BOOL WINAPI IsThemeActive(void)
Definition: system.c:606
static HMODULE hUxTheme
Definition: theme.c:60
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
Definition: system.c:950

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 }
smooth NULL
Definition: ftsmooth.c:416
#define FreeLibrary(x)
Definition: compat.h:405
static HMODULE hUxTheme
Definition: theme.c:60

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().