comctl32/tab: Always draw parent background when themed.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b13c4127a9
commit
e7011c9d65
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in New Issue