Interesting question on VC++ 5.0

We have a dialog, which has a list box.
We would want to provide Horizontal scroll bars to the list box. We have already tried checking the horizontal control option, but that didnt work out. It works well for Vertical scroll bar. Kindly get back asap
pbhugraAsked:
Who is Participating?
 
Answers2000Connect With a Mentor Commented:
Hmmm, well I kind of considered answering, and your 2nd opinion suggests I should...so I will now

pbhugra - see my 5:50 comment,
0
 
Answers2000Commented:
The standard list box control can do horizontal or vertical scroll bars but not both.

Your options for a work round:
1. use List View control in details mode.    MFC has the handy CListCtrl class to process this.  These can handle both scroll bars
or
2. Add your own horizontal scroll bar external to the list, and scroll the content of the list box yourself (typically by using OwnerDraw and painting with an appropriate horizontal offset).  If you use message reflection you can handle the scroll bars in a class derived from CListBox and get a reusable list box with both horizontal and vertical scrollbars.

0
 
nietodCommented:
Note to experts, I think answers2000 meant to answer with that.  It seems to be a good answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.