在Static里怎样使文本字段换行?

解决方案 »

  1.   

    http://www.codeproject.com/miscctrl/cinputbox.asp
      

  2.   

    str="asdf"+"\r\n";
    str="asf"+"\r\n";
    m_stat=str;//str为CString类型,m_stat为static变量
      

  3.   

    在想换行的地方加上"\r\n"
    比如下面:你好,
    你在哪?可以这样写:
    "你好,\r\n你在哪?"
      

  4.   

    \n就可以了, 
    \t是留一段空格(相当与按一个TAB键)
      

  5.   

    GetDlgItem(ID_STATIC)->SetWindowText("i love this \n game!");