Advertisement

Win32 coding: Listbox prob.

Started by July 18, 2001 06:55 AM
2 comments, last by RageMatrix 23 years, 7 months ago
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=-
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
Advertisement
try... selecting the last item in your listbox after you add your new item.

Thanks for the info. I''ll play around with it some more.

RM.


-=Kicking Butt and Writing Code=-

This topic is closed to new replies.

Advertisement