Problem with CEdit
-
Hi everybody, i have a problem with CEdit, for example CString s1="Hello World"; CString s2="This is a Test"; //and we have CEdit variable m_edit m_edit=s1+"\n"+s2; as you see i want the result to be Hello World This is a Test but CEdit shows : Hello World This is a Test though CEdit is marked in properties as "Multiline" Can anybody help?? Regards m0n0
-
Hi everybody, i have a problem with CEdit, for example CString s1="Hello World"; CString s2="This is a Test"; //and we have CEdit variable m_edit m_edit=s1+"\n"+s2; as you see i want the result to be Hello World This is a Test but CEdit shows : Hello World This is a Test though CEdit is marked in properties as "Multiline" Can anybody help?? Regards m0n0
-
replace
\n
with\r\n
it will work... even today (April, 1st) :-D ps: is your EditBox declared as MultiLine ?
TOXCCT >>> GEII power
[toxcct][VisualCalc] -
Hi everybody, i have a problem with CEdit, for example CString s1="Hello World"; CString s2="This is a Test"; //and we have CEdit variable m_edit m_edit=s1+"\n"+s2; as you see i want the result to be Hello World This is a Test but CEdit shows : Hello World This is a Test though CEdit is marked in properties as "Multiline" Can anybody help?? Regards m0n0
For future reference, we have a FAQ: 4.12 How do I create a newline in a multi-line edit control?[^] --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD