MCPcopy Create free account
hub / github.com/ImpulseAdventure/JPEGsnoop / AppendToLogLocal

Method AppendToLogLocal

DocLog.cpp:213–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211// ======================================================================
212
213unsigned 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
232unsigned CDocLog::GetNumLinesLocal()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected