MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / ClearSort

Method ClearSort

WinArk/VirtualListView.h:38–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected