How to active the scrollbar on ListBox manually ?

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. ...

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    3

    How to active the scrollbar on ListBox manually ?

    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!

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Just use the WS_VSCROLL style when you create the listbox.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    3
    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!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. horizontal scrollbar in listbox
    By umen242 in forum Windows Programming
    Replies: 4
    Last Post: 09-17-2010, 01:20 AM
  2. cant load dialog with listbox, help
    By terracota in forum Windows Programming
    Replies: 2
    Last Post: 11-22-2004, 06:11 PM
  3. How to cast a ListBox item to an int for a switch statment?
    By Swaine777 in forum C++ Programming
    Replies: 8
    Last Post: 09-26-2004, 08:52 PM
  4. Listbox control with horizontal scrollbar
    By Ward in forum Windows Programming
    Replies: 1
    Last Post: 02-06-2002, 09:35 AM
  5. Getting FULL filename from listbox
    By Garfield in forum Windows Programming
    Replies: 8
    Last Post: 01-27-2002, 07:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21