hi
try this instead of \r\n

CEdit *myEdit=(CEdit *)GetDlgItem(IDC_EDIT1);
myEdit->SetWindowText("My 1st Line \r\nMy 2nd Line");

Regards
SKP

Be sure to rate answers if it helped, to encourage them.