comctl32/listview: Reset bNoItemMetrics to make sure that listview items can be arranged correctly.

Signed-off-by: Zhao Yi <zhaoyi@uniontech.com>
This commit is contained in:
Zhao Yi 2023-07-26 21:00:29 +08:00 committed by Alexandre Julliard
parent 4fd56146a8
commit 314c94e100

View file

@ -5590,6 +5590,7 @@ static BOOL LISTVIEW_DeleteAllItems(LISTVIEW_INFO *infoPtr, BOOL destroy)
LISTVIEW_UpdateScroll(infoPtr);
}
LISTVIEW_InvalidateList(infoPtr);
infoPtr->bNoItemMetrics = TRUE;
return TRUE;
}