mirror of
https://github.com/reactos/reactos.git
synced 2025-05-05 09:57:04 +00:00
[UXTHEME]
- fix a few winetest Patch by Ben Pye (bfhben __ gmail __ com) svn path=/trunk/; revision=56058
This commit is contained in:
parent
2181eb4926
commit
a0e5de9deb
1 changed files with 10 additions and 1 deletions
|
@ -630,6 +630,9 @@ HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR pszClassList)
|
|||
LPCWSTR pszUseClassList;
|
||||
HTHEME hTheme = NULL;
|
||||
TRACE("(%p,%s)\n", hwnd, debugstr_w(pszClassList));
|
||||
|
||||
if(pszClassList == NULL)
|
||||
SetLastError(E_POINTER);
|
||||
|
||||
if(bThemeActive)
|
||||
{
|
||||
|
@ -645,6 +648,7 @@ HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR pszClassList)
|
|||
if(IsWindow(hwnd))
|
||||
SetPropW(hwnd, (LPCWSTR)MAKEINTATOM(atWindowTheme), hTheme);
|
||||
TRACE(" = %p\n", hTheme);
|
||||
|
||||
return hTheme;
|
||||
}
|
||||
|
||||
|
@ -662,6 +666,9 @@ HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR pszClassList)
|
|||
HTHEME WINAPI GetWindowTheme(HWND hwnd)
|
||||
{
|
||||
TRACE("(%p)\n", hwnd);
|
||||
if(!IsWindow(hwnd))
|
||||
SetLastError(E_HANDLE);
|
||||
|
||||
return GetPropW(hwnd, (LPCWSTR)MAKEINTATOM(atWindowTheme));
|
||||
}
|
||||
|
||||
|
@ -673,9 +680,11 @@ HTHEME WINAPI GetWindowTheme(HWND hwnd)
|
|||
HRESULT WINAPI SetWindowTheme(HWND hwnd, LPCWSTR pszSubAppName,
|
||||
LPCWSTR pszSubIdList)
|
||||
{
|
||||
if(!IsWindow(hwnd))
|
||||
return E_HANDLE;
|
||||
|
||||
HRESULT hr;
|
||||
TRACE("(%p,%s,%s)\n", hwnd, debugstr_w(pszSubAppName),
|
||||
debugstr_w(pszSubIdList));
|
||||
hr = UXTHEME_SetWindowProperty(hwnd, atSubAppName, pszSubAppName);
|
||||
if(SUCCEEDED(hr))
|
||||
hr = UXTHEME_SetWindowProperty(hwnd, atSubIdList, pszSubIdList);
|
||||
|
|
Loading…
Reference in a new issue