| 127 | } |
| 128 | |
| 129 | int CEtwView::GetRowImage(HWND, int row) const { |
| 130 | auto& evt = m_Events[row]; |
| 131 | if (auto it = s_IconsMap.find(evt->GetEventName()); it != s_IconsMap.end()) |
| 132 | return it->second; |
| 133 | |
| 134 | auto pos = evt->GetEventName().find(L'/'); |
| 135 | if (pos != std::wstring::npos) { |
| 136 | if (auto it = s_IconsMap.find(evt->GetEventName().substr(0, pos)); it != s_IconsMap.end()) |
| 137 | return it->second; |
| 138 | } |
| 139 | return 0; |
| 140 | } |
| 141 | |
| 142 | PCWSTR CEtwView::GetColumnTextPointer(HWND, int row, int col) const { |
| 143 | auto item = m_Events[row].get(); |