In my C ++ Win32 GUI application, I have a dialog with an edit control created from a dialog template:
EDITTEXT IDC_EDIT_Id, X, Y, W, H,
ES_MULTILINE | ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
Each time you enter multi-line text with a carriage return and call, the GetWindowText()resulting text is divided into lines with characters CRand LF, as expected. However, when I try to put the same text back into the edit control with SetWindowText(), the control displays that text as a single line.
Why does this show such behavior and how can I solve it?
source
share