How do i automatically scroll to the bottom of a edit control when text gets added?
-
I have an edit control working as a log, but when new text gets added to the control that makes the scrollbar active, it scrolls to the top so you can't see what has happened. Is it possible to set it to scroll to the bottom automatically, or is there a message you can send so it does it? I'm programming Win32 BTW. Thanks all.
-
I have an edit control working as a log, but when new text gets added to the control that makes the scrollbar active, it scrolls to the top so you can't see what has happened. Is it possible to set it to scroll to the bottom automatically, or is there a message you can send so it does it? I'm programming Win32 BTW. Thanks all.
Use this to set the selection to the last character in the edit control http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/em_setsel.asp[^]
"What do you want to do tonight, Bill?"
"Same thing we do every night, Steve. Try to take over the world!"