Louis Lenders : uxtheme: Add stub for SetWindowThemeAttribute.

Alexandre Julliard julliard at winehq.org
Fri Jan 26 16:59:10 CST 2018


Module: wine
Branch: master
Commit: 28613fcd934bffb3a581830a8fa7568ab35e4140
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=28613fcd934bffb3a581830a8fa7568ab35e4140

Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date:   Thu Jan  4 21:00:27 2018 +0100

uxtheme: Add stub for SetWindowThemeAttribute.

Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/uxtheme/system.c     | 10 ++++++++++
 dlls/uxtheme/uxtheme.spec |  1 +
 include/uxtheme.h         |  4 +++-
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c
index 08996e1..e11271a 100644
--- a/dlls/uxtheme/system.c
+++ b/dlls/uxtheme/system.c
@@ -721,6 +721,16 @@ HRESULT WINAPI SetWindowTheme(HWND hwnd, LPCWSTR pszSubAppName,
 }
 
 /***********************************************************************
+ *      SetWindowThemeAttribute                             (UXTHEME.@)
+ */
+HRESULT WINAPI SetWindowThemeAttribute(HWND hwnd, enum WINDOWTHEMEATTRIBUTETYPE type,
+                                       PVOID attribute, DWORD size)
+{
+   FIXME("(%p,%d,%p,%d): stub\n", hwnd, type, attribute, size);
+   return E_NOTIMPL;
+}
+
+/***********************************************************************
  *      GetCurrentThemeName                                 (UXTHEME.@)
  */
 HRESULT WINAPI GetCurrentThemeName(LPWSTR pszThemeFileName, int dwMaxNameChars,
diff --git a/dlls/uxtheme/uxtheme.spec b/dlls/uxtheme/uxtheme.spec
index 5b68fde..632129b 100644
--- a/dlls/uxtheme/uxtheme.spec
+++ b/dlls/uxtheme/uxtheme.spec
@@ -108,3 +108,4 @@
 @ stdcall OpenThemeData(ptr wstr)
 @ stdcall SetThemeAppProperties(long)
 @ stdcall SetWindowTheme(ptr wstr wstr)
+@ stdcall SetWindowThemeAttribute(ptr long ptr long)
diff --git a/include/uxtheme.h b/include/uxtheme.h
index 374b530..a35f4ae 100644
--- a/include/uxtheme.h
+++ b/include/uxtheme.h
@@ -206,6 +206,8 @@ HTHEME WINAPI GetWindowTheme(HWND);
 #define OTD_NONCLIENT               0x0002
 #define OTD_VALIDBITS               (OTD_FORCE_RECT_SIZING | OTD_NONCLIENT)
 
+enum WINDOWTHEMEATTRIBUTETYPE { WTA_NONCLIENT = 1 };
+
 HRESULT WINAPI HitTestThemeBackground(HTHEME,HDC,int,int,DWORD,const RECT*,
                                       HRGN,POINT,WORD*);
 BOOL WINAPI IsAppThemed(void);
@@ -218,7 +220,7 @@ HTHEME WINAPI OpenThemeData(HWND,LPCWSTR);
 HTHEME WINAPI OpenThemeDataEx(HWND,LPCWSTR,DWORD);
 void WINAPI SetThemeAppProperties(DWORD);
 HRESULT WINAPI SetWindowTheme(HWND,LPCWSTR,LPCWSTR);
-
+HRESULT WINAPI SetWindowThemeAttribute(HWND,enum WINDOWTHEMEATTRIBUTETYPE,PVOID,DWORD);
 
 /* Double-buffered Drawing API */
 




More information about the wine-cvs mailing list