i am using the ws_vscroll style on a listbox. is there another style i can add to make the scroll tab stay at the bottom of the shaft instead of the top as more items are added to the listbox.
thanks
Printable View
i am using the ws_vscroll style on a listbox. is there another style i can add to make the scroll tab stay at the bottom of the shaft instead of the top as more items are added to the listbox.
thanks
I don't understand what you mean. If you use the ws_vscroll you will get a scroll bar on the right side of the listbox. What do you want to place at the bottom?
To make the listview scroll as you add new items.
I use both as I have a wner draw listview. Try the ENSUREVISIBLE first and add the first line later if needed.Code:
SendMessage(hListView, LVM_SCROLL, (WPARAM)0, (LPARAM)(ItemRect.bottom-ItemRect.top));
SendMessage(hListView, LVM_ENSUREVISIBLE, (WPARAM)iRow, (LPARAM)FALSE);
Okay, now I understand what you ment.