Hi,
I want to place a mutli-line CString on a CEdit, but the line break "\n" does not break line. "\n" displayed as a symbol like "[]". Please help me out here. The following is the code:
Ctring test="";
for (int i=0; i<20; i++)
{ CString line="New line\n"
test+=line;
}
CEdit* pEdit;
....//get the edit
pEdit->SetWindowText(test);
The text on CEdit is something like:
New line[]New line[]New Line[] ...........
Cheers
I want to place a mutli-line CString on a CEdit, but the line break "\n" does not break line. "\n" displayed as a symbol like "[]". Please help me out here. The following is the code:
Ctring test="";
for (int i=0; i<20; i++)
{ CString line="New line\n"
test+=line;
}
CEdit* pEdit;
....//get the edit
pEdit->SetWindowText(test);
The text on CEdit is something like:
New line[]New line[]New Line[] ...........
Cheers