comctl32: Paint item as selected if it's TVIS_SELECTED and also focused.
This commit is contained in:
parent
2248cfbb6b
commit
6f15ca3e47
|
@ -2526,7 +2526,7 @@ TREEVIEW_DrawItem(const TREEVIEW_INFO *infoPtr, HDC hdc, TREEVIEW_ITEM *item)
|
|||
* - Otherwise - use background color
|
||||
*/
|
||||
if ((item->state & TVIS_DROPHILITED) || ((item == infoPtr->focusedItem) && !(item->state & TVIS_SELECTED)) ||
|
||||
((item->state & TVIS_SELECTED) && (!infoPtr->focusedItem) &&
|
||||
((item->state & TVIS_SELECTED) && (!infoPtr->focusedItem || item == infoPtr->focusedItem) &&
|
||||
(inFocus || (infoPtr->dwStyle & TVS_SHOWSELALWAYS))))
|
||||
{
|
||||
if ((item->state & TVIS_DROPHILITED) || inFocus)
|
||||
|
|
Loading…
Reference in New Issue