From 040850e8c5c2dcd86c9a2601fdf68e84bd9cbcfa Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 11 Jan 2005 10:39:33 +0000 Subject: [PATCH] Don't highlight text in non-TVS_TRACKSELECT mode. --- dlls/comctl32/treeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index ab983d4c095..bff17f999c7 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -2502,7 +2502,7 @@ TREEVIEW_DrawItem(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *wineItem) } else { - if (wineItem == infoPtr->hotItem) + if ((infoPtr->dwStyle & TVS_TRACKSELECT) && (wineItem == infoPtr->hotItem)) oldTextColor = SetTextColor(hdc, comctl32_color.clrHighlight); else if (infoPtr->clrText == -1) oldTextColor =