ReactOS 0.4.15-dev-8131-g4988de4
uxundoc.h
Go to the documentation of this file.
1#pragma once
2
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 */
21typedef 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 */
44typedef 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. */
50typedef struct tagTHEMENAMES
51{
56
57/* Declarations for undocumented functions for use internally */
59
60HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName,
61 LPCWSTR pszColorName,
62 LPCWSTR pszSizeName,
63 HTHEMEFILE *hThemeFile,
65
67
69 char *unknown,
70 HWND hWnd);
71
72HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName,
73 LPWSTR pszColorName,
74 DWORD dwColorNameLen,
75 LPWSTR pszSizeName,
76 DWORD dwSizeNameLen);
77
78HRESULT WINAPI EnumThemes(LPCWSTR pszThemePath,
80 LPVOID lpData);
81
82HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName,
83 LPWSTR pszSizeName,
84 DWORD dwColorNum,
85 PTHEMENAMES pszColorNames);
86
87HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName,
88 LPWSTR pszColorName,
89 DWORD dwSizeNum,
90 PTHEMENAMES pszColorNames);
91
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
static HDC hDC
Definition: 3dtext.c:33
HWND hWnd
Definition: settings.c:17
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1605
#define MAX_PATH
Definition: compat.h:34
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
static HDC
Definition: imagelist.c:92
static IPrintDialogCallback callback
Definition: printdlg.c:326
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
#define BOOL
Definition: nt_native.h:43
WCHAR szDisplayName[MAX_PATH+1]
Definition: uxundoc.h:53
WCHAR szName[MAX_PATH+1]
Definition: uxundoc.h:52
WCHAR szTooltip[MAX_PATH+1]
Definition: uxundoc.h:54
BOOL WINAPI ThemeHooksRemove()
Definition: themehooks.c:735
BOOL WINAPI ThemeHooksInstall()
Definition: themehooks.c:693
BOOL(CALLBACK * ENUMTHEMEPROC)(LPVOID lpReserved, LPCWSTR pszThemeFileName, LPCWSTR pszThemeName, LPCWSTR pszToolTip, LPVOID lpReserved2, LPVOID lpData)
Definition: uxundoc.h:21
HRESULT WINAPI ParseThemeIniFile(LPCWSTR pszIniFileName, LPWSTR pszUnknown, PARSETHEMEINIFILEPROC callback, LPVOID lpData)
Definition: system.c:1430
HANDLE HTHEMEFILE
Definition: uxundoc.h:3
HTHEME WINAPI OpenThemeDataFromFile(HTHEMEFILE hThemeFile, HWND hwnd, LPCWSTR pszClassList, DWORD flags)
Definition: system.c:827
DWORD WINAPI QueryThemeServices(void)
Definition: system.c:1079
HRESULT WINAPI DrawNCPreview(HDC hDC, DWORD DNCP_Flag, LPRECT prcPreview, LPCWSTR pszThemeFileName, LPCWSTR pszColorName, LPCWSTR pszSizeName, PNONCLIENTMETRICSW pncMetrics, COLORREF *lpaRgbValues)
Definition: nonclient.c:1218
HRESULT WINAPI ApplyTheme(HTHEMEFILE hThemeFile, char *unknown, HWND hWnd)
Definition: system.c:1158
HRESULT WINAPI OpenThemeFile(LPCWSTR pszThemeFileName, LPCWSTR pszColorName, LPCWSTR pszSizeName, HTHEMEFILE *hThemeFile, DWORD unknown)
Definition: system.c:1101
HRESULT WINAPI EnumThemeColors(LPWSTR pszThemeFileName, LPWSTR pszSizeName, DWORD dwColorNum, PTHEMENAMES pszColorNames)
Definition: system.c:1310
HRESULT WINAPI EnumThemeSizes(LPWSTR pszThemeFileName, LPWSTR pszColorName, DWORD dwSizeNum, PTHEMENAMES pszColorNames)
Definition: system.c:1373
HRESULT WINAPI EnumThemes(LPCWSTR pszThemePath, ENUMTHEMEPROC callback, LPVOID lpData)
Definition: system.c:1221
HRESULT WINAPI CloseThemeFile(HTHEMEFILE hThemeFile)
Definition: system.c:1127
struct tagTHEMENAMES * PTHEMENAMES
BOOL(CALLBACK * PARSETHEMEINIFILEPROC)(DWORD dwType, LPWSTR pszParam1, LPWSTR pszParam2, LPWSTR pszParam3, DWORD dwParam, LPVOID lpData)
Definition: uxundoc.h:44
struct tagTHEMENAMES THEMENAMES
HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName, LPWSTR pszColorName, DWORD dwColorNameLen, LPWSTR pszSizeName, DWORD dwSizeNameLen)
Definition: system.c:1183
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
DWORD COLORREF
Definition: windef.h:300
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185