ReactOS  0.4.12-dev-14-gd0c8636
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.

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

57 {
58  if (!InitUxTheme())
60 
63 
65 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
DWORD WINAPI GetLastError(VOID)
Definition: except.c:1059
static ETDTProc fnEnableThemeDialogTexture
Definition: uxthemesupp.c:15
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
Definition: wincrypt.h:1175
static BOOL InitUxTheme(VOID)
Definition: uxthemesupp.c:22

◆ InitUxTheme()

static BOOL InitUxTheme ( VOID  )
static

Definition at line 22 of file uxthemesupp.c.

Referenced by EnableThemeDialogTexture(), and SetWindowTheme().

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 }
static HMODULE hUxTheme
Definition: uxthemesupp.c:12
#define TRUE
Definition: types.h:120
HRESULT(WINAPI * ETDTProc)(HWND, DWORD)
Definition: uxthemesupp.c:14
#define LoadLibraryW(x)
Definition: compat.h:404
smooth NULL
Definition: ftsmooth.c:416
static ETDTProc fnEnableThemeDialogTexture
Definition: uxthemesupp.c:15
static const WCHAR L[]
Definition: oid.c:1087
HRESULT(WINAPI * SWTProc)(HWND, LPCWSTR, LPCWSTR)
Definition: uxthemesupp.c:17
#define GetProcAddress(x, y)
Definition: compat.h:410
static SWTProc fnSetWindowTheme
Definition: uxthemesupp.c:18

◆ 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.