mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:53:09 +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
|
else
|
||||||
diff = (descr->top_item - index) * descr->item_height;
|
diff = (descr->top_item - index) * descr->item_height;
|
||||||
|
#ifdef __REACTOS__
|
||||||
ScrollWindowEx( descr->self, 0, diff, NULL, NULL, 0, NULL,
|
if (descr->style & LBS_MULTICOLUMN)
|
||||||
SW_INVALIDATE | SW_ERASE | SW_SCROLLCHILDREN );
|
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
|
else
|
||||||
InvalidateRect( descr->self, NULL, TRUE );
|
InvalidateRect( descr->self, NULL, TRUE );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue