Commit a056663e authored by Akihiro Sagawa's avatar Akihiro Sagawa Committed by Alexandre Julliard

comctl32/listbox: Fix redraw after LB_SETCOUNT message.

parent d3cb9a29
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment