Solved

RichEdit control

Posted on 2003-12-02
2
438 Views
Last Modified: 2013-12-03
Hello,The problem I am have is with the richedit control.The problem I am haveing is the scroll is scrolling the wrong way when I  input text through  

int nLength = GetWindowTextLength(hEdit) ;
            SendMessage(hEdit, EM_SETSEL, nLength, nLength);
            SendMessage(hEdit,  EM_REPLACESEL, 0, (LPARAM)(LPTSTR)text);
        SendMessage(hEdit,  EM_REPLACESEL, 0, (LPARAM)"\r\n");


How can I get it to scroll down instead of up.Thank you
0
Comment
Question by:boooo
[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 Comments
 
LVL 48

Accepted Solution

by:
AlexFM earned 100 total points
ID: 9858248
Scroll to end in any control:

PostMessage(hEdit, WM_VSCROLL, SB_BOTTOM, 0);
0
 

Author Comment

by:boooo
ID: 9863071
Thank you
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 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