Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
必须有一种更好的方法从多行 CEdit 控件中获取文本,而不是使用GetLineCount()然后循环遍历所有行并将 附加GetLine(i)到累加器字符串的末尾。还有比这更好的方法吗?
GetLineCount()
GetLine(i)
使用CWindow::GetWindowText()和CWindow::GetWindowTextLength()
CWindow::GetWindowText()
CWindow::GetWindowTextLength()