1. Retrieve string from Edit contorl.
2. Add the string i got on step 1 into Edti contorl.
so, i did like this.
* Supposed, IDC_ABC contorl has "Hello \n world \n cplusplus"
CString str;
GetDlgItem(IDC_ABC)->GetWindowText(str);
AfxMessageBox(str);
< result >
Hello
world
cplusplus
GetDlgItem(IDC_ABC)->SetWindowText(str);
< result >
Hello world cplusplus
Second result is not what I want.
I mean, it didn't have endline("\n")