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
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
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).