CEdit: How to keep the scroll bar down?
Posted on 2003-12-05
I have a multiline CEdit control with a vertical scroll bar.
I am appending strings in it and I want the scroll bar to be always down.
Here's the code I have, which does not work:
mMyEditControl.GetScrollRange( SB_VERT, &lMinPos, &lMaxPos );
mMyEditControl.SetScrollPos( lMaxPos, TRUE );
What can I do to make it work?