Zhiyi Zhang : comctl32/tab: Always draw parent background when themed.
Alexandre Julliard
julliard at winehq.org
Thu Feb 10 16:10:29 CST 2022
Module: wine
Branch: master
Commit: e7011c9d65ebf561f8cdf21ff200ed730af201fd
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e7011c9d65ebf561f8cdf21ff200ed730af201fd
Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date: Thu Feb 10 14:56:43 2022 +0800
comctl32/tab: Always draw parent background when themed.
Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/comctl32/tab.c | 5 +++++
dlls/comctl32/tests/misc.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index 8e34f8b97b3..1275381489a 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -2315,9 +2315,14 @@ static void TAB_DrawBorder(const TAB_INFO *infoPtr, HDC hdc)
TRACE("border=(%s)\n", wine_dbgstr_rect(&rect));
if (theme)
+ {
+ DrawThemeParentBackground(infoPtr->hwnd, hdc, &rect);
DrawThemeBackground (theme, hdc, TABP_PANE, 0, &rect, NULL);
+ }
else
+ {
DrawEdge(hdc, &rect, EDGE_RAISED, BF_SOFT|BF_RECT);
+ }
}
/******************************************************************************
diff --git a/dlls/comctl32/tests/misc.c b/dlls/comctl32/tests/misc.c
index 5daca6aff93..069d1200c82 100644
--- a/dlls/comctl32/tests/misc.c
+++ b/dlls/comctl32/tests/misc.c
@@ -881,7 +881,7 @@ static void test_themed_background(void)
{WC_STATICA, SS_ETCHEDHORZ, wm_ctlcolorstatic_seq, TRUE},
{STATUSCLASSNAMEA, 0, empty_seq},
{"SysLink", 0, wm_ctlcolorstatic_seq},
- {WC_TABCONTROLA, 0, drawthemeparentbackground_seq, TRUE},
+ {WC_TABCONTROLA, 0, drawthemeparentbackground_seq},
{TOOLBARCLASSNAMEA, 0, empty_seq, TRUE},
{TOOLTIPS_CLASSA, 0, empty_seq},
{TRACKBAR_CLASSA, 0, wm_ctlcolorstatic_seq},
More information about the wine-cvs
mailing list