Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Append text to CEditView/CEdit MFC 2.5

Posted on 1997-03-07
1
Medium Priority
?
848 Views
Last Modified: 2013-11-20
I can append text to a CEditView member (using SetSel() ReplaceSel()) but how do I append a newline character(s) first so that each new text message appears on its own line?
0
Comment
Question by:robm
1 Comment
 
LVL 1

Accepted Solution

by:
MFCGuy earned 100 total points
ID: 1300072
Insert the text "\r\n" before the text you want, e.g.

Set Sel(1,5);
ReplaceSel("\r\nNewText");

Bye,
MFCGuy
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

916 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