MCPcopy Create free account
hub / github.com/NtQuery/Scylla / OnListMemoryColumnClicked

Method OnListMemoryColumnClicked

Scylla/DumpMemoryGui.cpp:231–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230
231LRESULT DumpMemoryGui::OnListMemoryColumnClicked(NMHDR* pnmh)
232{
233 NMLISTVIEW* list = (NMLISTVIEW*)pnmh;
234 int column = list->iSubItem;
235
236 if(column == prevColumn)
237 {
238 ascending = !ascending;
239 }
240 else
241 {
242 prevColumn = column;
243 ascending = true;
244 }
245
246 // lo-byte: column, hi-byte: sort-order
247 ListMemorySelect.SortItems(&listviewCompareFunc, MAKEWORD(column, ascending));
248
249 return 0;
250}
251LRESULT DumpMemoryGui::OnListMemoryClick(NMHDR* pnmh)
252{
253 int index = ListMemorySelect.GetSelectionMark();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected