Solved

RichEdit control

Posted on 2003-12-02
2
422 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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 …
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now