Click to See Complete Forum and Search --> : CEditView - Adding CR/LF


Henry Camacho
October 18th, 1999, 11:28 PM
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.
hfc@isd.net

Henry Camacho
October 19th, 1999, 12:57 AM
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.
hfc@isd.net