Nikolay Sivov : comctl32/header: Fix item text color.
Alexandre Julliard
julliard at winehq.org
Thu Nov 29 15:09:36 CST 2018
Module: wine
Branch: stable
Commit: e35208351299a51a97f3e5a7960f889730953206
URL: https://source.winehq.org/git/wine.git/?a=commit;h=e35208351299a51a97f3e5a7960f889730953206
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Aug 12 22:39:46 2018 +0300
comctl32/header: Fix item text color.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 2225ff4126f82cad0dc6aef00edcf39c48fb73ba)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/comctl32/header.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/header.c b/dlls/comctl32/header.c
index fcba262..bdcf6f1 100644
--- a/dlls/comctl32/header.c
+++ b/dlls/comctl32/header.c
@@ -388,7 +388,7 @@ HEADER_DrawItem (HEADER_INFO *infoPtr, HDC hdc, INT iItem, BOOL bHotTrack, LRESU
state = (phdi->bDown) ? HIS_PRESSED : (bHotTrack ? HIS_HOT : HIS_NORMAL);
/* Set the colors before sending NM_CUSTOMDRAW so that it can change them */
- SetTextColor(hdc, (bHotTrack && !theme) ? COLOR_HIGHLIGHT : COLOR_BTNTEXT);
+ SetTextColor(hdc, (bHotTrack && !theme) ? comctl32_color.clrHighlight : comctl32_color.clrBtnText);
SetBkColor(hdc, comctl32_color.clr3dFace);
if (lCDFlags & CDRF_NOTIFYITEMDRAW && !(phdi->fmt & HDF_OWNERDRAW))
More information about the wine-cvs
mailing list