ReactOS 0.4.15-dev-7924-g5949c20
uxthemesupp.c File Reference
#include "precomp.h"
#include "uxthemesupp.h"
Include dependency graph for uxthemesupp.c:

Go to the source code of this file.

Typedefs

typedef HRESULT(WINAPIETDTProc) (HWND, DWORD)
 
typedef HRESULT(WINAPISWTProc) (HWND, LPCWSTR, LPCWSTR)
 

Functions

static BOOL InitUxTheme (VOID)
 
HRESULT WINAPI EnableThemeDialogTexture (_In_ HWND hwnd, _In_ DWORD dwFlags)
 
HRESULT WINAPI SetWindowTheme (_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
 

Variables

static HMODULE hUxTheme = NULL
 
static ETDTProc fnEnableThemeDialogTexture = NULL
 
static SWTProc fnSetWindowTheme = NULL
 

Typedef Documentation

◆ ETDTProc

typedef HRESULT(WINAPI * ETDTProc) (HWND, DWORD)

Definition at line 14 of file uxthemesupp.c.

◆ SWTProc

typedef HRESULT(WINAPI * SWTProc) (HWND, LPCWSTR, LPCWSTR)

Definition at line 17 of file uxthemesupp.c.

Function Documentation

◆ EnableThemeDialogTexture()

HRESULT WINAPI EnableThemeDialogTexture ( _In_ HWND  hwnd,
_In_ DWORD  dwFlags 
)

Definition at line 55 of file uxthemesupp.c.

57{
58 if (!InitUxTheme())
60
63
65}
static BOOL InitUxTheme(VOID)
Definition: uxthemesupp.c:22
static ETDTProc fnEnableThemeDialogTexture
Definition: uxthemesupp.c:15
DWORD WINAPI GetLastError(void)
Definition: except.c:1042
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1176
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92

Referenced by BtrfsBalance::BalanceDlgProc(), BtrfsBalance::BalanceOptsDlgProc(), BtrfsDeviceAdd::DeviceAddDlgProc(), BtrfsVolPropSheet::DeviceDlgProc(), BtrfsDeviceResize::DeviceResizeDlgProc(), PROPSHEET_CreatePage(), PropSheetDlgProc(), and BtrfsVolPropSheet::UsageDlgProc().

◆ InitUxTheme()

static BOOL InitUxTheme ( VOID  )
static

Definition at line 22 of file uxthemesupp.c.

23{
24 if (hUxTheme) return TRUE;
25
26 hUxTheme = LoadLibraryW(L"uxtheme.dll");
27 if (hUxTheme == NULL) return FALSE;
28
30 (ETDTProc)GetProcAddress(hUxTheme, "EnableThemeDialogTexture");
32 (SWTProc)GetProcAddress(hUxTheme, "SetWindowTheme");
33
34 return TRUE;
35}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define GetProcAddress(x, y)
Definition: compat.h:753
#define LoadLibraryW(x)
Definition: compat.h:747
#define L(x)
Definition: ntvdm.h:50
HRESULT(WINAPI * ETDTProc)(HWND, DWORD)
Definition: uxthemesupp.c:14
static HMODULE hUxTheme
Definition: uxthemesupp.c:12
static SWTProc fnSetWindowTheme
Definition: uxthemesupp.c:18
HRESULT(WINAPI * SWTProc)(HWND, LPCWSTR, LPCWSTR)
Definition: uxthemesupp.c:17

Referenced by EnableThemeDialogTexture(), and SetWindowTheme().

◆ SetWindowTheme()

Variable Documentation

◆ fnEnableThemeDialogTexture

ETDTProc fnEnableThemeDialogTexture = NULL
static

Definition at line 15 of file uxthemesupp.c.

Referenced by EnableDialogTheme(), EnableThemeDialogTexture(), and InitUxTheme().

◆ fnSetWindowTheme

SWTProc fnSetWindowTheme = NULL
static

Definition at line 18 of file uxthemesupp.c.

Referenced by InitUxTheme(), and SetWindowTheme().

◆ hUxTheme

HMODULE hUxTheme = NULL
static

Definition at line 12 of file uxthemesupp.c.

Referenced by InitUxTheme().