List Box to bottom

This is a discussion on List Box to bottom within the Windows Programming forums, part of the Platform Specific Boards category; Hi, im writing a chat program, for some reason I cant get it ( the list box) to goto the ...

  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
    Semi n00b Mithoric's Avatar
    Join Date
    Jun 2003
    Posts
    293
    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, 11:10 AM
  2. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 11:01 AM
  3. List box horizontal bar
    By cfriend in forum Windows Programming
    Replies: 1
    Last Post: 09-12-2004, 04:52 PM
  4. Linked List
    By jpipitone in forum C Programming
    Replies: 4
    Last Post: 03-30-2003, 09:27 PM

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