mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[COMCTL32] ListView LVIS_CUT image does not depend on focus (#7724)
Also undoes flicker caused by PR #4218.
This commit is contained in:
parent
88f105e184
commit
ae79d1af90
1 changed files with 4 additions and 4 deletions
|
@ -2270,11 +2270,7 @@ static void LISTVIEW_InvalidateSelectedItems(const LISTVIEW_INFO *infoPtr)
|
|||
iterator_frameditems(&i, infoPtr, &infoPtr->rcList);
|
||||
while(iterator_next(&i))
|
||||
{
|
||||
#ifdef __REACTOS__
|
||||
if (LISTVIEW_GetItemState(infoPtr, i.nItem, LVIS_SELECTED | LVIS_CUT))
|
||||
#else
|
||||
if (LISTVIEW_GetItemState(infoPtr, i.nItem, LVIS_SELECTED))
|
||||
#endif
|
||||
LISTVIEW_InvalidateItem(infoPtr, i.nItem);
|
||||
}
|
||||
iterator_destroy(&i);
|
||||
|
@ -4782,7 +4778,11 @@ static void LISTVIEW_DrawItemPart(LISTVIEW_INFO *infoPtr, LVITEMW *item, const N
|
|||
|
||||
TRACE("iImage=%d\n", item->iImage);
|
||||
|
||||
#ifdef __REACTOS__
|
||||
if (item->state & (LVIS_CUT | (infoPtr->bFocus ? LVIS_SELECTED : 0)))
|
||||
#else
|
||||
if (item->state & (LVIS_SELECTED | LVIS_CUT) && infoPtr->bFocus)
|
||||
#endif
|
||||
style = ILD_SELECTED;
|
||||
else
|
||||
style = ILD_NORMAL;
|
||||
|
|
Loading…
Reference in a new issue