[USER32] Fixed scrolling issue in Change Icon dialog. CORE-16163

This commit is contained in:
Jose Carlos Jesus 2019-12-16 00:49:49 +00:00 committed by Mark Jansen
parent 7ba93b9463
commit a4483d79da

View file

@ -321,9 +321,14 @@ static LRESULT LISTBOX_SetTopItem( LB_DESCR *descr, INT index, BOOL scroll )
}
else
diff = (descr->top_item - index) * descr->item_height;
ScrollWindowEx( descr->self, 0, diff, NULL, NULL, 0, NULL,
SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN );
#ifdef __REACTOS__
if (descr->style & LBS_MULTICOLUMN)
ScrollWindowEx(descr->self, diff, 0, NULL, NULL, 0, NULL,
SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN);
else
#endif
ScrollWindowEx(descr->self, 0, diff, NULL, NULL, 0, NULL,
SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN);
}
else
InvalidateRect( descr->self, NULL, TRUE );