| 211 | // ====================================================================== |
| 212 | |
| 213 | unsigned CDocLog::AppendToLogLocal(CString strTxt, COLORREF sColor) |
| 214 | { |
| 215 | // Don't exceed a realistic maximum! |
| 216 | unsigned numLines = m_saLogQuickTxt.GetCount(); |
| 217 | if (numLines == DOCLOG_MAX_LINES) { |
| 218 | m_saLogQuickTxt.Add(_T("*** TOO MANY LINES IN REPORT -- TRUNCATING ***")); |
| 219 | m_naLogQuickCol.Add((unsigned)sColor); |
| 220 | return 0; |
| 221 | } else if (numLines > DOCLOG_MAX_LINES) { |
| 222 | return 0; |
| 223 | } |
| 224 | |
| 225 | m_saLogQuickTxt.Add(strTxt); |
| 226 | m_naLogQuickCol.Add((unsigned)sColor); |
| 227 | |
| 228 | return 0; |
| 229 | } |
| 230 | |
| 231 | // Get the number of lines in the local log or quick buffer |
| 232 | unsigned CDocLog::GetNumLinesLocal() |
nothing calls this directly
no outgoing calls
no test coverage detected