user32/listbox: Fix redraw after LB_SETCOUNT message.
commit247185ba78a22bd0f84eeb753b59e377cebfd7a9
authorAkihiro Sagawa <sagawa.aki@gmail.com>
Thu, 12 Aug 2021 12:17:42 +0000 (12 21:17 +0900)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 12 Aug 2021 15:30:21 +0000 (12 17:30 +0200)
tree924aa249a54440f8cb6f8f5c3f72b535401a2b72
parenta70ed810d59dbbcaaa65db515ee92b9b985323ff
user32/listbox: Fix redraw after LB_SETCOUNT message.

3ef790b9680cbf38fc93b4902e3ca6c9f57c5422 accidentally dropped updating
LBS_DISPLAYCHANGED flag that had been done in LISTBOX_InvalidateItems()
if the count value was changed.
In fact, the newly added test shows LB_SETCOUNT message always causes
WM_DRAWITEM requests regardless of the count value.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51591
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/user32/listbox.c
dlls/user32/tests/listbox.c