Link to home
Start Free TrialLog in
Avatar of DiegoDevesa
DiegoDevesa

asked on

RichEd autoscroll

I want to make a chat program, and I need the richedit control where the chat is writen, autoscrolls down when text is added... how can i do it???
I'm using Visual C++, no mfc
ASKER CERTIFIED SOLUTION
Avatar of WxW
WxW

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MichaelS
MichaelS

I know one more way:

SendMessage(m_hRichEdit, EM_SCROLLCARET, 0, 0);
Avatar of DiegoDevesa

ASKER

Both answers work well, thanks!
MichaelS : EM_SCROLLCARET works only for RichEdit version 1. For the 2.0+ ( RICHED20.DLL ) it won't work . The control killed my patience to find why , I haven't found it yet . Stupid MSN .