| 197 | } |
| 198 | |
| 199 | void CEvalView::Append(LPCTSTR lpszText, BOOL mark) |
| 200 | { |
| 201 | CEdit &edit = GetEditCtrl(); |
| 202 | if (CMainFrame::m_nLogMaxLines > 0) |
| 203 | limit_buffer(edit, CMainFrame::m_nLogMaxLines - |
| 204 | count_lines(lpszText)); |
| 205 | int len = edit.GetWindowTextLength(); |
| 206 | edit.SetSel(len, len); |
| 207 | if (lpszText) { |
| 208 | edit.ReplaceSel(lpszText); |
| 209 | if (mark && lpszText) { |
| 210 | LPCTSTR p = strrchr(lpszText, '\n'); |
| 211 | if (p) |
| 212 | m_strPMark = p+1; |
| 213 | else |
| 214 | m_strPMark += lpszText; |
| 215 | } |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | void CEvalView::AppendNewLine(LPCTSTR lpszText, |
| 220 | BOOL mark) |
no test coverage detected