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
54985317
Commit
54985317
authored
Apr 05, 2004
by
Kevin Koltzau
Committed by
Alexandre Julliard
Apr 05, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented EnumThemes.
parent
c4c4da4e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
2 deletions
+46
-2
system.c
dlls/uxtheme/system.c
+46
-2
No files found.
dlls/uxtheme/system.c
View file @
54985317
...
...
@@ -600,8 +600,52 @@ HRESULT WINAPI GetThemeDefaults(LPCWSTR pszThemeFileName, LPWSTR pszColorName,
HRESULT
WINAPI
EnumThemes
(
LPCWSTR
pszThemePath
,
EnumThemeProc
callback
,
LPVOID
lpData
)
{
FIXME
(
"%s: stub
\n
"
,
debugstr_w
(
pszThemePath
));
return
ERROR_CALL_NOT_IMPLEMENTED
;
WCHAR
szDir
[
MAX_PATH
];
WCHAR
szPath
[
MAX_PATH
];
WCHAR
szStar
[]
=
{
'*'
,
'.'
,
'*'
,
'\0'
};
WCHAR
szFormat
[]
=
{
'%'
,
's'
,
'%'
,
's'
,
'\\'
,
'%'
,
's'
,
'.'
,
'm'
,
's'
,
's'
,
't'
,
'y'
,
'l'
,
'e'
,
's'
,
'\0'
};
WCHAR
szDisplayName
[]
=
{
'd'
,
'i'
,
's'
,
'p'
,
'l'
,
'a'
,
'y'
,
'n'
,
'a'
,
'm'
,
'e'
,
'\0'
};
WCHAR
szTooltip
[]
=
{
't'
,
'o'
,
'o'
,
'l'
,
't'
,
'i'
,
'p'
,
'\0'
};
WCHAR
szName
[
60
];
WCHAR
szTip
[
60
];
HANDLE
hFind
;
WIN32_FIND_DATAW
wfd
;
HRESULT
hr
;
TRACE
(
"(%s,%p,%p)
\n
"
,
debugstr_w
(
pszThemePath
),
callback
,
lpData
);
if
(
!
pszThemePath
||
!
callback
)
return
E_POINTER
;
lstrcpyW
(
szDir
,
pszThemePath
);
PathAddBackslashW
(
szDir
);
lstrcpyW
(
szPath
,
szDir
);
lstrcatW
(
szPath
,
szStar
);
TRACE
(
"searching %s
\n
"
,
debugstr_w
(
szPath
));
hFind
=
FindFirstFileW
(
szPath
,
&
wfd
);
if
(
hFind
!=
INVALID_HANDLE_VALUE
)
{
do
{
if
(
wfd
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
&&
!
(
wfd
.
cFileName
[
0
]
==
'.'
&&
((
wfd
.
cFileName
[
1
]
==
'.'
&&
wfd
.
cFileName
[
2
]
==
0
)
||
wfd
.
cFileName
[
1
]
==
0
)))
{
wsprintfW
(
szPath
,
szFormat
,
szDir
,
wfd
.
cFileName
,
wfd
.
cFileName
);
hr
=
GetThemeDocumentationProperty
(
szPath
,
szDisplayName
,
szName
,
sizeof
(
szName
)
/
sizeof
(
szName
[
0
]));
if
(
SUCCEEDED
(
hr
))
hr
=
GetThemeDocumentationProperty
(
szPath
,
szTooltip
,
szTip
,
sizeof
(
szTip
)
/
sizeof
(
szTip
[
0
]));
if
(
SUCCEEDED
(
hr
))
{
TRACE
(
"callback(%s,%s,%s,%p)
\n
"
,
debugstr_w
(
szPath
),
debugstr_w
(
szName
),
debugstr_w
(
szTip
),
lpData
);
if
(
!
callback
(
NULL
,
szPath
,
szName
,
szTip
,
NULL
,
lpData
))
{
TRACE
(
"callback ended enum
\n
"
);
break
;
}
}
}
}
while
(
FindNextFileW
(
hFind
,
&
wfd
));
FindClose
(
hFind
);
}
return
S_OK
;
}
...
...
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