Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
f3883fe8
Commit
f3883fe8
authored
Feb 07, 2004
by
Kevin Koltzau
Committed by
Alexandre Julliard
Feb 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Process color metrics for themes.
parent
a6637ddb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
msstyles.c
dlls/uxtheme/msstyles.c
+33
-1
No files found.
dlls/uxtheme/msstyles.c
View file @
f3883fe8
...
...
@@ -43,6 +43,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
* Defines and global variables
*/
BOOL
UXTHEME_GetNextInteger
(
LPCWSTR
lpStringStart
,
LPCWSTR
lpStringEnd
,
LPCWSTR
*
lpValEnd
,
int
*
value
);
extern
HINSTANCE
hDllInst
;
#define MSSTYLES_VERSION 0x0003
...
...
@@ -588,7 +590,37 @@ void MSSTYLES_ParseThemeIni(PTHEME_FILE tf)
while
((
lpName
=
UXINI_GetNextSection
(
ini
,
&
dwLen
)))
{
if
(
CompareStringW
(
LOCALE_SYSTEM_DEFAULT
,
NORM_IGNORECASE
,
lpName
,
dwLen
,
szSysMetrics
,
-
1
)
==
CSTR_EQUAL
)
{
FIXME
(
"Process system metrics
\n
"
);
int
colorCount
=
0
;
int
colorElements
[
TMT_LASTCOLOR
-
TMT_FIRSTCOLOR
];
COLORREF
colorRgb
[
TMT_LASTCOLOR
-
TMT_FIRSTCOLOR
];
LPCWSTR
lpValueEnd
;
while
((
lpName
=
UXINI_GetNextValue
(
ini
,
&
dwLen
,
&
lpValue
,
&
dwValueLen
)))
{
lstrcpynW
(
szPropertyName
,
lpName
,
min
(
dwLen
+
1
,
sizeof
(
szPropertyName
)
/
sizeof
(
szPropertyName
[
0
])));
if
(
MSSTYLES_LookupProperty
(
szPropertyName
,
&
iPropertyPrimitive
,
&
iPropertyId
))
{
if
(
iPropertyId
>=
TMT_FIRSTCOLOR
&&
iPropertyId
<=
TMT_LASTCOLOR
)
{
int
r
,
g
,
b
;
lpValueEnd
=
lpValue
+
dwValueLen
;
UXTHEME_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
r
);
UXTHEME_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
g
);
if
(
UXTHEME_GetNextInteger
(
lpValue
,
lpValueEnd
,
&
lpValue
,
&
b
))
{
colorElements
[
colorCount
]
=
iPropertyId
-
TMT_FIRSTCOLOR
;
colorRgb
[
colorCount
++
]
=
RGB
(
r
,
g
,
b
);
}
else
{
FIXME
(
"Invalid color value for %s
\n
"
,
debugstr_w
(
szPropertyName
));
}
}
else
{
/* FIXME: Handle non-color metrics */
}
}
else
{
TRACE
(
"Unknown system metric %s
\n
"
,
debugstr_w
(
szPropertyName
));
}
}
if
(
colorCount
>
0
)
SetSysColors
(
colorCount
,
colorElements
,
colorRgb
);
continue
;
}
if
(
MSSTYLES_ParseIniSectionName
(
lpName
,
dwLen
,
szAppName
,
szClassName
,
&
iPartId
,
&
iStateId
))
{
...
...
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