Thread: List box slider moving downwards

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    20

    List box slider moving downwards

    Hi

    I update a List Box control with many elements ( LB_ADDSTRING ). The slider box of the vertical scrollbar remains always on top. Is there any way to be always in the bottom in order to follow the new inserted data ? Also is there any limit for how many items a list box can accept ?

    Thanks

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>Is there any way to be always in the bottom in order to follow the new inserted data ?<<

    LB_SETCURSEL.

    >>Also is there any limit for how many items a list box can accept ?<<

    Not sure but probably huge. If you have a lot of items to add then LB_INITSTORAGE may be of interest.

    For more information checkout out msdn: listboxes.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    In listviews I use

    LVM_ENSUREVISIBLE
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 06:16 PM
  2. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 06:40 PM
  3. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  4. 1st Class LIST ADT
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-09-2001, 07:29 PM