Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RichEd autoscroll

Posted on 1999-08-31
4
Medium Priority
?
270 Views
Last Modified: 2013-12-03
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
0
Comment
Question by:DiegoDevesa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Accepted Solution

by:
WxW earned 200 total points
ID: 1953188
You need EM_NOHIDESEL along with EM_AUTOVSCROLL . Dirty .
0
 
LVL 6

Expert Comment

by:MichaelS
ID: 1953878
I know one more way:

SendMessage(m_hRichEdit, EM_SCROLLCARET, 0, 0);
0
 
LVL 1

Author Comment

by:DiegoDevesa
ID: 1954298
Both answers work well, thanks!
0
 
LVL 6

Expert Comment

by:WxW
ID: 1954320
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 .
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question