comctl32: Proper fix redrawing the trackbar background with themes enabled.
This commit is contained in:
parent
0b5ebcf2fd
commit
af9c736f6b
|
@ -869,10 +869,7 @@ TRACKBAR_Refresh (TRACKBAR_INFO *infoPtr, HDC hdcDst)
|
||||||
if (gcdrf == CDRF_DODEFAULT ||
|
if (gcdrf == CDRF_DODEFAULT ||
|
||||||
notify_customdraw(infoPtr, &nmcd, CDDS_PREERASE) != CDRF_SKIPDEFAULT) {
|
notify_customdraw(infoPtr, &nmcd, CDDS_PREERASE) != CDRF_SKIPDEFAULT) {
|
||||||
if ((theme = GetWindowTheme (infoPtr->hwndSelf))) {
|
if ((theme = GetWindowTheme (infoPtr->hwndSelf))) {
|
||||||
DrawThemeBackground (theme, hdc,
|
DrawThemeParentBackground (infoPtr->hwndSelf, hdc, 0);
|
||||||
(GetWindowLongW (infoPtr->hwndSelf, GWL_STYLE) & TBS_VERT) ?
|
|
||||||
TKP_TRACKVERT : TKP_TRACK, TKS_NORMAL, &rcClient, 0);
|
|
||||||
DrawThemeParentBackground (infoPtr->hwndSelf, hdc, &rcClient);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
FillRect (hdc, &rcClient, GetSysColorBrush(COLOR_BTNFACE));
|
FillRect (hdc, &rcClient, GetSysColorBrush(COLOR_BTNFACE));
|
||||||
|
|
Loading…
Reference in New Issue