Thread: ListBox Scrolling Problems

  1. #1
    Registered User
    Join Date
    Feb 2005
    Location
    south africa
    Posts
    7

    ListBox Scrolling Problems

    I was having trouble Scrolling a listbox whenever new strings were added to it, and when I googled it the closest answer I got was this post: 26718 but it wasn't much help.

    I got it working though, and I thought to post the solution here, in case somebody else might find it helpfull.

    Code:
    m_cList.AddString(strMsg);  \\m_cList is an object of CListBox
    m_cList.SetCaretIndex(m_cList.GetCount(), TRUE);
    Last edited by commissar; 03-09-2005 at 07:24 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ListBox Extra Data Storage
    By Welder in forum Windows Programming
    Replies: 1
    Last Post: 11-01-2007, 01:46 PM
  2. cant load dialog with listbox, help
    By terracota in forum Windows Programming
    Replies: 2
    Last Post: 11-22-2004, 07: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 Scrolling Problems
    By pldd4 in forum Windows Programming
    Replies: 21
    Last Post: 10-30-2002, 05:02 AM
  5. Getting FULL filename from listbox
    By Garfield in forum Windows Programming
    Replies: 8
    Last Post: 01-27-2002, 08:28 AM