Thread: List Box to bottom

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    110

    List Box to bottom

    Hi, im writing a chat program, for some reason I cant get it ( the list box) to goto the bottom each time it recieves a message, anyone got any idea?

    Coder

  2. #2
    I think you use the LB_SETTOPINDEX message.

    wParam = (WPARAM)index;
    lParam = 0; // Must be zero

    Use LB_GETCOUNT to obtain the last index ( LB_GETCOUNT-1, I guess).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  3. List box horizontal bar
    By cfriend in forum Windows Programming
    Replies: 1
    Last Post: 09-12-2004, 03:52 PM
  4. Linked List
    By jpipitone in forum C Programming
    Replies: 4
    Last Post: 03-30-2003, 09:27 PM