MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / UpdateNodeText

Method UpdateNodeText

src/NppJsonViewer/TreeViewCtrl.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void TreeViewCtrl::UpdateNodeText(HTREEITEM node, const std::wstring& text)
52{
53 auto tvi = std::make_unique<TVITEMW>();
54 if (GetTVItem(node, tvi.get()))
55 {
56 tvi->mask |= TVIF_TEXT;
57 tvi->cchTextMax = static_cast<int>(text.size());
58 tvi->pszText = const_cast<wchar_t*>(text.c_str());
59
60 SetTVItem(tvi.get());
61 }
62}
63
64auto TreeViewCtrl::GetNodeCount() const -> unsigned int
65{

Callers 1

AppendNodeCountMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected