From: Louis Lenders xerox.xerox2000x@gmail.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58747
v2: print flags in hex. --- dlls/uxtheme/draw.c | 11 +++++++++++ dlls/uxtheme/uxtheme.spec | 1 + include/uxtheme.h | 1 + 3 files changed, 13 insertions(+)
diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c index aa6a9f3bd5d..6bf85f6a0f3 100644 --- a/dlls/uxtheme/draw.c +++ b/dlls/uxtheme/draw.c @@ -2078,6 +2078,17 @@ HRESULT WINAPI GetThemeBackgroundRegion(HTHEME hTheme, HDC hdc, int iPartId, return hr; }
+/*********************************************************************** + * GetThemeBitmap (UXTHEME.@) + */ +HRESULT WINAPI GetThemeBitmap(HTHEME hTheme, int iPartId, int iStateId, + int iPropId, ULONG dwFlags, HBITMAP *phBitmap) +{ + FIXME("(%p,%d,%d,%d,0x%08lx,%p) stub\n", hTheme, iPartId, iStateId, iPropId, dwFlags, phBitmap); + + return E_NOTIMPL; +} + /* compute part size for "borderfill" backgrounds */ static HRESULT get_border_background_size (HTHEME hTheme, int iPartId, int iStateId, THEMESIZE eSize, POINT* psz) diff --git a/dlls/uxtheme/uxtheme.spec b/dlls/uxtheme/uxtheme.spec index a4eb7bc3026..38224a1f0e7 100644 --- a/dlls/uxtheme/uxtheme.spec +++ b/dlls/uxtheme/uxtheme.spec @@ -79,6 +79,7 @@ @ stdcall GetThemeBackgroundContentRect(ptr ptr long long ptr ptr) @ stdcall GetThemeBackgroundExtent(ptr ptr long long ptr ptr) @ stdcall GetThemeBackgroundRegion(ptr ptr long long ptr ptr) +@ stdcall GetThemeBitmap(ptr long long long long ptr) @ stdcall GetThemeBool(ptr long long long ptr) @ stdcall GetThemeColor(ptr long long long ptr) @ stdcall GetThemeDocumentationProperty(wstr wstr wstr long) diff --git a/include/uxtheme.h b/include/uxtheme.h index 5bcfd2b0117..f6edb40c3ac 100644 --- a/include/uxtheme.h +++ b/include/uxtheme.h @@ -98,6 +98,7 @@ typedef struct _DTTOPTS {
THEMEAPI DrawThemeTextEx(HTHEME,HDC,int,int,LPCWSTR,int,DWORD,RECT*, const DTTOPTS*); +THEMEAPI GetThemeBitmap(HTHEME,int,int,int,ULONG,HBITMAP*);
#define ETDT_DISABLE 0x00000001 #define ETDT_ENABLE 0x00000002