| 1359 | } |
| 1360 | |
| 1361 | bool CLogView::EndUpdate() |
| 1362 | { |
| 1363 | if (m_dirty) |
| 1364 | { |
| 1365 | SetItemCountEx(m_logLines.size(), LVSICF_NOSCROLL); |
| 1366 | if (m_autoScrollDown) |
| 1367 | ScrollDown(); |
| 1368 | |
| 1369 | m_dirty = false; |
| 1370 | } |
| 1371 | |
| 1372 | if (m_stop) |
| 1373 | { |
| 1374 | m_stop(); |
| 1375 | m_stop = nullptr; |
| 1376 | } |
| 1377 | if (m_track) |
| 1378 | { |
| 1379 | if (m_track()) |
| 1380 | { |
| 1381 | // nolonger track item after it has correctly centered |
| 1382 | StopTracking(); |
| 1383 | } |
| 1384 | } |
| 1385 | return m_changed; |
| 1386 | } |
| 1387 | |
| 1388 | void CLogView::StopTracking() |
| 1389 | { |