I have a listbox that can display 10 lines, but I add a string which is more than 10 lines.
How could I turn on the scrollbar of ListBox manually if I do not want to adjust height of listbox?
Thank you!
This is a discussion on How to active the scrollbar on ListBox manually ? within the C++ Programming forums, part of the General Programming Boards category; I have a listbox that can display 10 lines, but I add a string which is more than 10 lines. ...
I have a listbox that can display 10 lines, but I add a string which is more than 10 lines.
How could I turn on the scrollbar of ListBox manually if I do not want to adjust height of listbox?
Thank you!
Just use the WS_VSCROLL style when you create the listbox.
anonytmouse ,
I have used WS_VSCROLL.
There should be enough items to active scrollbar.
I just have one item on listbox, but the string of that item is too much.
Becuase of one item, the scrollbar did not active.
How can I active it?
Thank you!