comctl32: Paint item as selected if it's TVIS_SELECTED and also focused.

This commit is contained in:
Nikolay Sivov 2013-05-09 20:39:22 +04:00 committed by Alexandre Julliard
parent 2248cfbb6b
commit 6f15ca3e47
1 changed files with 1 additions and 1 deletions

View File

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