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

Method OnNodeExpanding

WinArk/WindowsView.cpp:458–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458LRESULT CWindowsView::OnNodeExpanding(int, LPNMHDR hdr, BOOL&) {
459 auto tv = (NMTREEVIEW*)hdr;
460 if (tv->action == TVE_EXPAND) {
461 auto hItem = tv->itemNew.hItem;
462
463 auto child = m_Tree.GetChildItem(hItem);
464 if (child.GetData() == 0) {
465 child.Delete();
466 AddChildWindows(hItem);
467 }
468 }
469 return 0;
470}
471
472LRESULT CWindowsView::OnNodeDeleted(int, LPNMHDR hdr, BOOL&) {
473 if (!m_Deleting) {

Callers

nothing calls this directly

Calls 2

GetDataMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected