Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c963461f
Commit
c963461f
authored
Sep 02, 2005
by
Frank Richter
Committed by
Alexandre Julliard
Sep 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Since uxtheme also returns a friendly display name from
EnumThemeColors() and EnumThemeSizes() use that in the color/size combos.
parent
0aef6795
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
theme.c
programs/winecfg/theme.c
+16
-7
No files found.
programs/winecfg/theme.c
View file @
c963461f
...
...
@@ -39,6 +39,14 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
winecfg
);
/* UXTHEME functions not in the headers */
typedef
struct
tagTHEMENAMES
{
WCHAR
szName
[
MAX_PATH
+
1
];
WCHAR
szDisplayName
[
MAX_PATH
+
1
];
WCHAR
szTooltip
[
MAX_PATH
+
1
];
}
THEMENAMES
,
*
PTHEMENAMES
;
typedef
void
*
HTHEMEFILE
;
typedef
BOOL
(
CALLBACK
*
EnumThemeProc
)(
LPVOID
lpReserved
,
LPCWSTR
pszThemeFileName
,
...
...
@@ -47,9 +55,9 @@ typedef BOOL (CALLBACK *EnumThemeProc)(LPVOID lpReserved,
LPVOID
lpData
);
HRESULT
WINAPI
EnumThemeColors
(
LPWSTR
pszThemeFileName
,
LPWSTR
pszSizeName
,
DWORD
dwColorNum
,
LPWSTR
pszColorName
);
DWORD
dwColorNum
,
PTHEMENAMES
pszColorNames
);
HRESULT
WINAPI
EnumThemeSizes
(
LPWSTR
pszThemeFileName
,
LPWSTR
pszColorName
,
DWORD
dwSizeNum
,
LPWSTR
pszSizeName
);
DWORD
dwSizeNum
,
PTHEMENAMES
pszSizeNames
);
HRESULT
WINAPI
ApplyTheme
(
HTHEMEFILE
hThemeFile
,
char
*
unknown
,
HWND
hWnd
);
HRESULT
WINAPI
OpenThemeFile
(
LPCWSTR
pszThemeFileName
,
LPCWSTR
pszColorName
,
LPCWSTR
pszSizeName
,
HTHEMEFILE
*
hThemeFile
,
...
...
@@ -158,7 +166,7 @@ static void free_theme_files(void)
themeFilesCount
=
0
;
}
typedef
HRESULT
(
WINAPI
*
EnumTheme
)
(
LPWSTR
,
LPWSTR
,
DWORD
,
LPWSTR
);
typedef
HRESULT
(
WINAPI
*
EnumTheme
)
(
LPWSTR
,
LPWSTR
,
DWORD
,
PTHEMENAMES
);
/* fill a string list with either colors or sizes of a theme */
static
void
fill_theme_string_array
(
const
WCHAR
*
filename
,
...
...
@@ -166,14 +174,15 @@ static void fill_theme_string_array (const WCHAR* filename,
EnumTheme
enumTheme
)
{
DWORD
index
=
0
;
WCHAR
name
[
MAX_PATH
]
;
THEMENAMES
names
;
WINE_TRACE
(
"%s %p %p
\n
"
,
wine_dbgstr_w
(
filename
),
wdsa
,
enumTheme
);
while
(
SUCCEEDED
(
enumTheme
((
WCHAR
*
)
filename
,
NULL
,
index
++
,
name
)))
while
(
SUCCEEDED
(
enumTheme
((
WCHAR
*
)
filename
,
NULL
,
index
++
,
&
names
)))
{
WINE_TRACE
(
"%s
\n
"
,
wine_dbgstr_w
(
name
));
color_or_size_dsa_add
(
wdsa
,
name
,
name
);
WINE_TRACE
(
"%s: %s
\n
"
,
wine_dbgstr_w
(
names
.
szName
),
wine_dbgstr_w
(
names
.
szDisplayName
));
color_or_size_dsa_add
(
wdsa
,
names
.
szName
,
names
.
szDisplayName
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment