Ensure the Last Character in a RichEdit control is Visible
Text is disappear开发者_如何学编程ing from the bottom of a RichEdit
control window and I'd like to ensure the bottom character is always visible. Obviously, I could manually scroll to the bottom, but I'd like to do it under software control.
Send the EM_SCROLLCARET message. Position the caret first, GetWindowTextLength() and EM_SETSEL.
精彩评论