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 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?
// Gliptic
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);
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Okay, now I understand what you ment.
// Gliptic