Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: Smithsonian on July 16, 2005, 01:45 PM

Title: [Win32] RichText box auto scroll problem
Post by: Smithsonian on July 16, 2005, 01:45 PM
My rich text box isn't automatically scrolling when text is added to it. Sometimes it will scroll automatically if I scroll to the very bottom on my own, and then send some text to it, but then sometimes if people are talking, and its adding text to the rich text box it wont scroll.

Whats the best way to keep this control automatically scrolling all the time?
Title: Re: [Win32] RichText box auto scroll problem
Post by: MyndFyre on July 16, 2005, 02:49 PM
You use the EM_SCROLL (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/editcontrols/editcontrolreference/editcontrolmessages/em_scroll.asp) when you add text to the box.