diff --git a/dlls/uxtheme/system.c b/dlls/uxtheme/system.c index 08996e1e53d..e11271ac2bc 100644 --- a/dlls/uxtheme/system.c +++ b/dlls/uxtheme/system.c @@ -720,6 +720,16 @@ HRESULT WINAPI SetWindowTheme(HWND hwnd, LPCWSTR pszSubAppName, return hr; } +/*********************************************************************** + * 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.@) */ diff --git a/dlls/uxtheme/uxtheme.spec b/dlls/uxtheme/uxtheme.spec index 5b68fdee1b9..632129b8104 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 374b5302d36..a35f4ae48a6 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 */