-
August 28th, 2013, 03:57 AM
#1
MFC. CListBox. SetScrollPos does not work after ResetContent
Code:
int nPos = ListBox.GetScrollPos(SB_VERT);
ListBox.ResetContent();
// Fill content
// ....
ListBox.SetScrollPos(SB_VERT, nPos);
ScrollBar rectangle looks good but content showed from the beginning.
Last edited by user008; August 28th, 2013 at 04:32 AM.
-
August 28th, 2013, 04:37 AM
#2
Re: MFC. CListBox. SetScrollPos does not work after ResetContent
Try to use CListBox::SetTopIndex
See the example in this thread.
Victor Nijegorodov
-
August 28th, 2013, 04:57 AM
#3
Re: MFC. CListBox. SetScrollPos does not work after ResetContent
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|