[COMCTL32] Invalidate LVIS_CUT selected items too (#4218)

This fixes icons that should be drawn transparently not showing as such until window gets repainted.
For example, hidden shell folders that are not drawn transparently until the filebrowser window is resized...

CORE-16722
This commit is contained in:
Jesús Sanz del Rey 2023-10-21 18:51:54 +02:00 committed by GitHub
parent c03b2ed9be
commit 855008d97b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2276,7 +2276,11 @@ 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);