Don't highlight text in non-TVS_TRACKSELECT mode.

This commit is contained in:
Robert Shearman 2005-01-11 10:39:33 +00:00 committed by Alexandre Julliard
parent a286c202f8
commit 040850e8c5
1 changed files with 1 additions and 1 deletions

View File

@ -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 =