Disable autoscroll in ListBox in mfc application -


Then, in my MFC application there is a listbox, where sometimes the method says AddString - in the properties of the listbox - the scrolling is true, And it works fine. And when there are several pairs of strings, the scrollbar is visible, but the slider is always below. When I increase it to see the previous stars, then it goes down after calling the Addstring method.

How can I not bring the movie after the adstring phone?

Thank you.

CListBox :: AddString adds string to at the end of the list If LBS_SORT is not given but there is no possibility to go below the slider because it can not causes a selection change. Make sure you are not calling SetCurSel , SetTopIndex or AfterString after addString .

Comments