| 1079 | } |
| 1080 | |
| 1081 | bool CLogView::FindProcess(int direction) |
| 1082 | { |
| 1083 | int begin = GetNextItem(-1, LVNI_FOCUSED); |
| 1084 | if (begin < 0) |
| 1085 | return false; |
| 1086 | |
| 1087 | auto processName = m_logFile[m_logLines[begin].line].processName; |
| 1088 | int line = FindLine([processName, this](const LogLine& line) { return m_logFile[line.line].processName == processName; }, direction); |
| 1089 | if (line < 0 || line == begin) |
| 1090 | return false; |
| 1091 | |
| 1092 | StopTracking(); |
| 1093 | ScrollToIndex(line, true); |
| 1094 | return true; |
| 1095 | } |
| 1096 | |
| 1097 | void CLogView::OnViewNextProcess(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/) |
| 1098 | { |
nothing calls this directly
no outgoing calls
no test coverage detected