|
-
October 18th, 1999, 11:28 PM
#1
CEditView - Adding CR/LF
I am trying to add text to a CEditView. I am using:
((CEditView*)m_viewList.GetHead())->SetWindowText(NULL);
((CTestView*)m_viewList.GetHead())->GetEditCtrl().ReplaceSel("Blah Blah\n");
However I am not able to get a new line with the \n.
Thanks in advance for any assistance.
HFC
Henry Camacho
Innovative Software Designs, Inc.
[email protected]
-
October 19th, 1999, 12:57 AM
#2
Re: CEditView - Adding CR/LF
I Solved this myself, and I though I would pass on the fix. When sending a string to the Edit control make sure it has a "\r\n" ending it. This will cause a new line. "\n\r" does not work
HFC
Henry Camacho
Innovative Software Designs, Inc.
[email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|