Zhiyi Zhang : uxtheme/tests: Test that DrawThemeBackgroundEx() is at ordinal 47.
Alexandre Julliard
julliard at winehq.org
Mon Jun 27 16:12:50 CDT 2022
Module: wine
Branch: master
Commit: 56b5d56c355e48ea714009977986fd23ca9705b4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=56b5d56c355e48ea714009977986fd23ca9705b4
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Thu Jun 23 15:33:14 2022 +0800
uxtheme/tests: Test that DrawThemeBackgroundEx() is at ordinal 47.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
---
dlls/uxtheme/tests/system.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dlls/uxtheme/tests/system.c b/dlls/uxtheme/tests/system.c
index 1f04ac879ec..f169231b214 100644
--- a/dlls/uxtheme/tests/system.c
+++ b/dlls/uxtheme/tests/system.c
@@ -40,6 +40,7 @@ static HTHEME (WINAPI * pOpenThemeDataEx)(HWND, LPCWSTR, DWORD);
static HTHEME (WINAPI *pOpenThemeDataForDpi)(HWND, LPCWSTR, UINT);
static HPAINTBUFFER (WINAPI *pBeginBufferedPaint)(HDC, const RECT *, BP_BUFFERFORMAT, BP_PAINTPARAMS *, HDC *);
static HRESULT (WINAPI *pBufferedPaintClear)(HPAINTBUFFER, const RECT *);
+static HRESULT (WINAPI *pDrawThemeBackgroundEx)(HTHEME, HDC, int, int, const RECT *, const DTBGOPTS *);
static HRESULT (WINAPI *pEndBufferedPaint)(HPAINTBUFFER, BOOL);
static HRESULT (WINAPI *pGetBufferedPaintBits)(HPAINTBUFFER, RGBQUAD **, int *);
static HDC (WINAPI *pGetBufferedPaintDC)(HPAINTBUFFER);
@@ -80,6 +81,7 @@ static void init_funcs(void)
GET_PROC(uxtheme, BeginBufferedPaint)
GET_PROC(uxtheme, BufferedPaintClear)
GET_PROC(uxtheme, EndBufferedPaint)
+ GET_PROC(uxtheme, DrawThemeBackgroundEx)
GET_PROC(uxtheme, GetBufferedPaintBits)
GET_PROC(uxtheme, GetBufferedPaintDC)
GET_PROC(uxtheme, GetBufferedPaintTargetDC)
@@ -2261,6 +2263,15 @@ static void test_EnableThemeDialogTexture(void)
UnregisterClassA(cls.lpszClassName, GetModuleHandleA(NULL));
}
+static void test_DrawThemeBackgroundEx(void)
+{
+ void *proc;
+
+ proc = GetProcAddress(GetModuleHandleA("uxtheme.dll"), MAKEINTRESOURCEA(47));
+ todo_wine
+ ok(proc == (void *)pDrawThemeBackgroundEx, "Expected DrawThemeBackgroundEx() at ordinal 47.\n");
+}
+
START_TEST(system)
{
ULONG_PTR ctx_cookie;
@@ -2287,6 +2298,7 @@ START_TEST(system)
test_GetThemeIntList();
test_GetThemeTransitionDuration();
test_DrawThemeParentBackground();
+ test_DrawThemeBackgroundEx();
if (load_v6_module(&ctx_cookie, &ctx))
{
More information about the wine-cvs
mailing list