Solved

RichEdit control

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

759 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

23 Experts available now in Live!

Get 1:1 Help Now