Reece H. Dunn : comctl32: Proper fix redrawing the trackbar background with themes enabled.
Alexandre Julliard
julliard at winehq.org
Tue Feb 5 06:33:46 CST 2008
Module: wine
Branch: master
Commit: af9c736f6bfee1edc18b98297be48417f3178057
URL: http://source.winehq.org/git/wine.git/?a=commit;h=af9c736f6bfee1edc18b98297be48417f3178057
Author: Reece H. Dunn <msclrhd at hotmail.com>
Date: Sun Feb 3 13:53:11 2008 +0000
comctl32: Proper fix redrawing the trackbar background with themes enabled.
---
dlls/comctl32/trackbar.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/comctl32/trackbar.c b/dlls/comctl32/trackbar.c
index bbb48c9..56e7cd3 100644
--- a/dlls/comctl32/trackbar.c
+++ b/dlls/comctl32/trackbar.c
@@ -869,10 +869,7 @@ TRACKBAR_Refresh (TRACKBAR_INFO *infoPtr, HDC hdcDst)
if (gcdrf == CDRF_DODEFAULT ||
notify_customdraw(infoPtr, &nmcd, CDDS_PREERASE) != CDRF_SKIPDEFAULT) {
if ((theme = GetWindowTheme (infoPtr->hwndSelf))) {
- DrawThemeBackground (theme, hdc,
- (GetWindowLongW (infoPtr->hwndSelf, GWL_STYLE) & TBS_VERT) ?
- TKP_TRACKVERT : TKP_TRACK, TKS_NORMAL, &rcClient, 0);
- DrawThemeParentBackground (infoPtr->hwndSelf, hdc, &rcClient);
+ DrawThemeParentBackground (infoPtr->hwndSelf, hdc, 0);
}
else
FillRect (hdc, &rcClient, GetSysColorBrush(COLOR_BTNFACE));
More information about the wine-cvs
mailing list