mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 18:03:37 +00:00
comctl32/listbox: Fix redraw after LB_SETCOUNT message.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d3cb9a2961
commit
a056663efb
|
@ -1830,6 +1830,8 @@ static LRESULT LISTBOX_SetCount( LB_DESCR *descr, UINT count )
|
|||
if (!resize_storage(descr, count))
|
||||
return LB_ERRSPACE;
|
||||
descr->nb_items = count;
|
||||
if (descr->style & LBS_NOREDRAW)
|
||||
descr->style |= LBS_DISPLAYCHANGED;
|
||||
|
||||
if (count)
|
||||
{
|
||||
|
|
|
@ -569,7 +569,6 @@ static void test_ownerdraw(void)
|
|||
got_drawitem = 0;
|
||||
ret = RedrawWindow(hLB, NULL, 0, RDW_UPDATENOW);
|
||||
ok(ret, "RedrawWindow failed\n");
|
||||
todo_wine_if(testcase[i].message == LB_SETCOUNT)
|
||||
ok(got_drawitem == testcase[i].drawitem, "expected %u, got %u\n", testcase[i].drawitem, got_drawitem);
|
||||
|
||||
DestroyWindow(hLB);
|
||||
|
|
Loading…
Reference in a new issue