Multiline Edit Control
Posted on 2006-11-06
I have a multiline edit control. When I load the dialog with the edit control, I want to
be able to initiliaze the text in the control so it will insert a line break where spaces occur
in the text. So SetDlgItemText(hWnd, IDC_EDIT, "This is a test"); should display in
the edit box as:
I tried replacing the spaces with '\r' and '\n' characters to no effect.
How do I preformat a string so it will display on multiple lines in the edit control?