MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / ClearAll

Method ClearAll

src/Windows/Treeview.cpp:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374int Treeview::ClearAll() {
375 HTREEITEM root = TreeView_GetRoot(m_hwnd);
376 if (root == NULL)
377 return 0;
378
379 FileObject * fo = GetItemFileObject(root);
380 ClearObjectDataRecursive(fo, true);
381
382 TreeView_DeleteItem(m_hwnd, root);
383
384 return 0;
385}
386
387int Treeview::ClearObjectDataRecursive(FileObject * fo, bool includeTop) {
388 if (!fo)

Callers 3

InitProfilesTreeMethod · 0.80
OnConnectMethod · 0.80
OnDisconnectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected