Don't highlight text in non-TVS_TRACKSELECT mode.
This commit is contained in:
parent
a286c202f8
commit
040850e8c5
|
@ -2502,7 +2502,7 @@ TREEVIEW_DrawItem(TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *wineItem)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (wineItem == infoPtr->hotItem)
|
if ((infoPtr->dwStyle & TVS_TRACKSELECT) && (wineItem == infoPtr->hotItem))
|
||||||
oldTextColor = SetTextColor(hdc, comctl32_color.clrHighlight);
|
oldTextColor = SetTextColor(hdc, comctl32_color.clrHighlight);
|
||||||
else if (infoPtr->clrText == -1)
|
else if (infoPtr->clrText == -1)
|
||||||
oldTextColor =
|
oldTextColor =
|
||||||
|
|
Loading…
Reference in New Issue