| 635 | } |
| 636 | |
| 637 | LRESULT CLogView::OnItemChanged(NMHDR* pnmh) |
| 638 | { |
| 639 | auto& nmhdr = *reinterpret_cast<NMLISTVIEW*>(pnmh); |
| 640 | |
| 641 | if ((nmhdr.uNewState & LVIS_FOCUSED) == 0 || |
| 642 | nmhdr.iItem < 0 || |
| 643 | static_cast<size_t>(nmhdr.iItem) >= m_logLines.size()) |
| 644 | return 0; |
| 645 | |
| 646 | if (m_autoScrollStop) |
| 647 | m_autoScrollDown = nmhdr.iItem == GetItemCount() - 1; |
| 648 | |
| 649 | SetHighlightText(); |
| 650 | return 0; |
| 651 | } |
| 652 | |
| 653 | RECT CLogView::GetItemRect(int iItem, unsigned code) const |
| 654 | { |
nothing calls this directly
no test coverage detected