mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[USER32] Fixed scrolling issue in Change Icon dialog. CORE-16163
This commit is contained in:
parent
7ba93b9463
commit
a4483d79da
1 changed files with 14 additions and 9 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue