如何設置多行顯示及滾動參考這篇博客
作者:qq_35359581
來源:CSDN
原文:https://blog.csdn.net/qq_35359581/article/details/78037485
CString相加問題
在多行顯示的時候遇到了變量相加不顯示的問題,解決方案如下:
CString strFilePath = _T(".\\SetInf.ini");
CString temp,temp1; //臨時存儲信息
::GetPrivateProfileString(strSection, _T("Power"), _T(""), temp.GetBuffer(MAX_PATH), MAX_PATH, strFilePath);
temp.ReleaseBuffer();//讀取到的變量必須先釋放buffer,才能進行加法運算
temp1 = _T("Power :") + temp + _T(" (mW) \r\n");
m_logtext += temp1; //編輯框變量累加賦值
UpdateData(FALSE);//顯示在控件上