可以直接利用\r\n的组合达到这一目的。例如:
CString m_text;
m_text = "hello \r\n Hello"; //顺序一定要是/r/n
如果将m_text输出到文本框中,将是如下格式:
hello
Hello