New Line in CRichEditCtrl ??
I have a class which was CRichEditView, now transferred to CRichEditCtrl.
After the transfer, the newlines, "\r\n" are not being honored. Everthing appears on one line..!!
The code snippet I am using to add each line of text to the control looks like;
SetSel(nChars, nChars); // point end of document
ReplaceSel((LPCSTR)szBuffer); // display text
where szBuffer is a string terminated with "\r\n"
Why is it not breaking the line as it did whan it was a View??
Thanks,
Bryan.
Re: New Line in CRichEditCtrl ??
Didn't you forget to set ES_MULTILINE style?
Re: New Line in CRichEditCtrl ??
Duh! That fixed it, I didn't need it when it was a View so when I made it a Ctrl, additional flags got overlooked.
Many Thanks,
Bryan.