| 36 | }; |
| 37 | |
| 38 | bool ClearSort(UINT_PTR id = 0) { |
| 39 | auto si = FindById(id); |
| 40 | if (si == nullptr) |
| 41 | return false; |
| 42 | |
| 43 | auto header = CListViewCtrl(si->hWnd).GetHeader(); |
| 44 | HDITEM h; |
| 45 | h.mask = HDI_FORMAT; |
| 46 | header.GetItem(si->SortColumn, &h); |
| 47 | h.fmt = (h.fmt & HDF_JUSTIFYMASK) | HDF_STRING; |
| 48 | header.SetItem(si->SortColumn, &h); |
| 49 | si->SortColumn = -1; |
| 50 | return true; |
| 51 | } |
| 52 | |
| 53 | bool ClearSort(HWND hWnd) { |
| 54 | auto si = FindByHwnd(hWnd); |
nothing calls this directly
no outgoing calls
no test coverage detected