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

Method DeleteChildren

WinArk/TreeHelper.cpp:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38int TreeHelper::DeleteChildren(HTREEITEM hItem) {
39 int count = 0;
40 hItem = _tv.GetChildItem(hItem);
41 while (hItem) {
42 auto hNext = _tv.GetNextSiblingItem(hItem);
43 if (_tv.DeleteItem(hItem))
44 count++;
45 hItem = hNext;
46 }
47 return count;
48}
49
50void TreeHelper::DoForEachItem(HTREEITEM hRoot, DWORD mask, std::function<void(HTREEITEM, DWORD)> action) {
51 CString text;

Callers 2

RefreshFullMethod · 0.80
RefreshItemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected