| 36 | } |
| 37 | |
| 38 | int 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 | |
| 50 | void TreeHelper::DoForEachItem(HTREEITEM hRoot, DWORD mask, std::function<void(HTREEITEM, DWORD)> action) { |
| 51 | CString text; |
no outgoing calls
no test coverage detected