ReactOS  0.4.14-dev-49-gfb4591c
uxundoc.h
Go to the documentation of this file.
1 #pragma once
2 
3 typedef HANDLE HTHEMEFILE;
4 
5 /**********************************************************************
6  * ENUMTHEMEPROC
7  *
8  * Callback function for EnumThemes.
9  *
10  * RETURNS
11  * TRUE to continue enumeration, FALSE to stop
12  *
13  * PARAMS
14  * lpReserved Always 0
15  * pszThemeFileName Full path to theme msstyles file
16  * pszThemeName Display name for theme
17  * pszToolTip Tooltip name for theme
18  * lpReserved2 Always 0
19  * lpData Value passed through lpData from EnumThemes
20  */
21 typedef BOOL (CALLBACK *ENUMTHEMEPROC)(LPVOID lpReserved, LPCWSTR pszThemeFileName,
22  LPCWSTR pszThemeName, LPCWSTR pszToolTip, LPVOID lpReserved2,
23  LPVOID lpData);
24 
25 /**********************************************************************
26  * PARSETHEMEINIFILEPROC
27  *
28  * Callback function for ParseThemeIniFile.
29  *
30  * RETURNS
31  * TRUE to continue enumeration, FALSE to stop
32  *
33  * PARAMS
34  * dwType Entry type
35  * pszParam1 Use defined by entry type
36  * pszParam2 Use defined by entry type
37  * pszParam3 Use defined by entry type
38  * dwParam Use defined by entry type
39  * lpData Value passed through lpData from ParseThemeIniFile
40  *
41  * NOTES
42  * I don't know what the valid entry types are
43  */
44 typedef BOOL (CALLBACK* PARSETHEMEINIFILEPROC)(DWORD dwType, LPWSTR pszParam1,
45  LPWSTR pszParam2, LPWSTR pszParam3,
46  DWORD dwParam, LPVOID lpData);
47 
48 /* Structure filled in by EnumThemeColors() and EnumeThemeSizes() with the
49  * various strings for a theme color or size. */
50 typedef struct tagTHEMENAMES
51 {
56 
57 /* Declarations for undocumented functions for use internally */
59 
60 HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName,
61  LPCWSTR pszColorName,
62  LPCWSTR pszSizeName,
63  HTHEMEFILE *hThemeFile,
64  DWORD unknown);
65 
67 
69  char *unknown,
70  HWND hWnd);
71 
72 HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName,
73  LPWSTR pszColorName,
74  DWORD dwColorNameLen,
75  LPWSTR pszSizeName,
76  DWORD dwSizeNameLen);
77 
78 HRESULT WINAPI EnumThemes(LPCWSTR pszThemePath,
80  LPVOID lpData);
81 
82 HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName,
83  LPWSTR pszSizeName,
84  DWORD dwColorNum,
85  PTHEMENAMES pszColorNames);
86 
87 HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName,
88  LPWSTR pszColorName,
89  DWORD dwSizeNum,
90  PTHEMENAMES pszColorNames);
91 
92 HRESULT WINAPI ParseThemeIniFile(LPCWSTR pszIniFileName,
93  LPWSTR pszUnknown,
95  LPVOID lpData);
96 
98  HWND hwnd,
99  LPCWSTR pszClassList,
100  DWORD flags);
101 
102 /* The DNCP_* flags let the caller decide what should be painted */
103 #define DNCP_ACTIVEWINDOW 0x1
104 #define DNCP_INACTIVEWINDOW 0x2
105 #define DNCP_DIALOGWINDOW 0x4
106 #define DNCP_DRAW_ALL DNCP_ACTIVEWINDOW | DNCP_INACTIVEWINDOW | DNCP_DIALOGWINDOW
107 
109  DWORD DNCP_Flag,
110  LPRECT prcPreview,
111  LPCWSTR pszThemeFileName,
112  LPCWSTR pszColorName,
113  LPCWSTR pszSizeName,
114  PNONCLIENTMETRICSW pncMetrics,
115  COLORREF* lpaRgbValues);
116 
118 
120 
struct tagTHEMENAMES THEMENAMES
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName, LPWSTR pszSizeName, DWORD dwColorNum, PTHEMENAMES pszColorNames)
Definition: system.c:1310
HRESULT WINAPI ParseThemeIniFile(LPCWSTR pszIniFileName, LPWSTR pszUnknown, PARSETHEMEINIFILEPROC callback, LPVOID lpData)
Definition: system.c:1430
WCHAR szDisplayName[MAX_PATH+1]
Definition: uxundoc.h:53
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
HRESULT WINAPI CloseThemeFile(HTHEMEFILE hThemeFile)
Definition: system.c:1127
HANDLE HTHEMEFILE
Definition: uxundoc.h:3
static HDC
Definition: imagelist.c:92
#define CALLBACK
Definition: compat.h:27
HWND hWnd
Definition: settings.c:17
BOOL WINAPI ThemeHooksRemove(VOID)
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
WCHAR szName[MAX_PATH+1]
Definition: uxundoc.h:52
DWORD WINAPI QueryThemeServices(void)
Definition: system.c:1079
#define BOOL
Definition: nt_native.h:43
struct tagTHEMENAMES * PTHEMENAMES
HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName, LPWSTR pszColorName, DWORD dwSizeNum, PTHEMENAMES pszColorNames)
Definition: system.c:1373
unsigned int BOOL
Definition: ntddk_ex.h:94
HTHEME WINAPI OpenThemeDataFromFile(HTHEMEFILE hThemeFile, HWND hwnd, LPCWSTR pszClassList, DWORD flags)
Definition: system.c:827
MmuTrapHandler callback[0x30]
Definition: mmuobject.c:44
BOOL WINAPI ThemeHooksInstall(VOID)
__wchar_t WCHAR
Definition: xmlstorage.h:180
LONG HRESULT
Definition: typedefs.h:77
DWORD COLORREF
Definition: windef.h:285
#define MAX_PATH
Definition: compat.h:26
#define WINAPI
Definition: msvc.h:8
unsigned long DWORD
Definition: ntddk_ex.h:95
HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName, LPWSTR pszColorName, DWORD dwColorNameLen, LPWSTR pszSizeName, DWORD dwSizeNameLen)
Definition: system.c:1183
Definition: id3.c:18
WCHAR szTooltip[MAX_PATH+1]
Definition: uxundoc.h:54
GLbitfield flags
Definition: glext.h:7161
static HDC hDC
Definition: 3dtext.c:33
BOOL(CALLBACK * PARSETHEMEINIFILEPROC)(DWORD dwType, LPWSTR pszParam1, LPWSTR pszParam2, LPWSTR pszParam3, DWORD dwParam, LPVOID lpData)
Definition: uxundoc.h:44
HRESULT WINAPI EnumThemes(LPCWSTR pszThemePath, ENUMTHEMEPROC callback, LPVOID lpData)
Definition: system.c:1221
HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName, LPCWSTR pszColorName, LPCWSTR pszSizeName, HTHEMEFILE *hThemeFile, DWORD unknown)
Definition: system.c:1101
WCHAR * LPWSTR
Definition: xmlstorage.h:184
HRESULT WINAPI ApplyTheme(HTHEMEFILE hThemeFile, char *unknown, HWND hWnd)
Definition: system.c:1158
HRESULT WINAPI DrawNCPreview(HDC hDC, DWORD DNCP_Flag, LPRECT prcPreview, LPCWSTR pszThemeFileName, LPCWSTR pszColorName, LPCWSTR pszSizeName, PNONCLIENTMETRICSW pncMetrics, COLORREF *lpaRgbValues)
Definition: nonclient.c:1069
BOOL(CALLBACK * ENUMTHEMEPROC)(LPVOID lpReserved, LPCWSTR pszThemeFileName, LPCWSTR pszThemeName, LPCWSTR pszToolTip, LPVOID lpReserved2, LPVOID lpData)
Definition: uxundoc.h:21