| 32 | } |
| 33 | |
| 34 | void CJobPropertiesDlg::DoSort(const SortInfo* si) { |
| 35 | if (si->hWnd == m_ProcList) { |
| 36 | auto comparer = [&](auto const& p1, auto const& p2) { |
| 37 | switch (si->SortColumn) { |
| 38 | case 0: return SortHelper::SortStrings(p1.Name, p2.Name, si->SortAscending); |
| 39 | case 1: return SortHelper::SortNumbers(p1.Id, p2.Id, si->SortAscending); |
| 40 | } |
| 41 | return false; |
| 42 | }; |
| 43 | std::sort(m_Processes.begin(), m_Processes.end(), comparer); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | void CJobPropertiesDlg::UpdateJob() { |
| 48 | CClientDC dc(*this); |
nothing calls this directly
no test coverage detected