ScrollBar rectangle looks good but content showed from the beginning.Code:int nPos = ListBox.GetScrollPos(SB_VERT);
ListBox.ResetContent();
// Fill content
// ....
ListBox.SetScrollPos(SB_VERT, nPos);
Printable View
ScrollBar rectangle looks good but content showed from the beginning.Code:int nPos = ListBox.GetScrollPos(SB_VERT);
ListBox.ResetContent();
// Fill content
// ....
ListBox.SetScrollPos(SB_VERT, nPos);
Try to use CListBox::SetTopIndex
See the example in this thread.
Thanks!