ListBox Scrolling Problems

This is a discussion on ListBox Scrolling Problems within the Windows Programming forums, part of the Platform Specific Boards category; I was having trouble Scrolling a listbox whenever new strings were added to it, and when I googled it the ...

  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, 02: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, 09: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

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