How to display the text on new line everytime the updateData(FALSE) is executed?
The editbox is in disable mode
Printable View
How to display the text on new line everytime the updateData(FALSE) is executed?
The editbox is in disable mode
First of all your edit control must have ES_MULTILINE style plus either ES_AUTOVSCROLL or ES_WANTRETURN (please, read the MSDN about using these styles).
Inserting "\r\n" in the text to be displayed in the edit control will cause the line break.
It does not make any sense.Quote:
The editbox is in disable mode
First resize your edit control, then set multiline property and then use a CString variable with \r\n before of every new line.
Code:m_strMulti = _T("Line 1 \r\n New Line");
You mean you cannot manually input text there? That is called "read-only" state, not "disable mode". ;)Quote:
The editbox is in disable mode
Thank you everybody!!!
It is working.