sllsgl
asked on
CListBox Vertical Scroll Bar Auto-Scroll?
Can anyone tell me how to make ListBox Vertical scroll bar automatically scrolled down to the latest item added just like the way edit box does to its incoming data?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi, thui, SetCaretIndex() is the right way :) For the 2nd parameter, using FALSE is better as the whole item can be visible, making the effect "Auto VScroll" better :)
Using TRUE may sometimes show the added item only partially.
Anyway, it's a good answer many ppl is looking forward to.
Using TRUE may sometimes show the added item only partially.
Anyway, it's a good answer many ppl is looking forward to.
ASKER
Anyway, thanks alot :)