Win32 coding: Listbox prob.
Hey all.
I am writing a small app that uses a listbox control to display some string data. When the data added is outside the size of the listbox, a scroll bar appears as it should. However, I would like the listbox to "scroll" data off the top, so this means that the scroll bar should always be at the bottom of the control. When new data is added, the scroll bar "snaps" back to the top of the list, effectively obscuring the new data that has been added. How can I make the listbox always show the bottom of the list? Is there some way to always make the scrollbar stay focused at the bottom of the control?
Cheers for any info.
RM.
-=Kicking Butt and Writing Code=-
July 18, 2001 07:27 AM
im not sure exactly how to do this but id guess you''d create a WM_VSCROLL event specifying where you want the listbox to scroll to
July 18, 2001 07:53 AM
try... selecting the last item in your listbox after you add your new item.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement