@@ -44,45 +44,6 @@ auto TreeViewCtrl::InsertNode(const std::wstring& text, LPARAM lparam, HTREEITEM
4444 return item;
4545}
4646
47- void TreeViewCtrl::InsertItem (const void * jsonNode, HTREEITEM node)
48- {
49- if (!jsonNode || !node)
50- return ;
51-
52- /* std::wstring txtToInsert = StringHelper::ToWstring(jsonNode->key);
53- JsonNodeType valType = jsonNode->type;
54-
55- if (valType == JsonNodeType::UNKNOWN || valType == JsonNodeType::NUMBER || valType == JsonNodeType::BOOL)
56- {
57- txtToInsert += TEXT(" : ");
58- txtToInsert += StringHelper::ToWstring(jsonNode->value);
59- InsertNode(txtToInsert, jsonNode->pos.line, node);
60- }
61- else if (valType == JsonNodeType::STRING)
62- {
63- txtToInsert += TEXT(" : ");
64- txtToInsert += TEXT("\"");
65- txtToInsert += StringHelper::ToWstring(jsonNode->value);
66- txtToInsert += TEXT("\"");
67- InsertNode(txtToInsert, jsonNode->pos.line, node);
68- }
69- else if (valType == JsonNodeType::OBJECT || valType == JsonNodeType::ARRAY)
70- {
71- if (valType == JsonNodeType::OBJECT)
72- txtToInsert += TEXT(" : [Object]");
73- if (valType == JsonNodeType::ARRAY)
74- txtToInsert += TEXT(" : [Array]");
75-
76- HTREEITEM newNode = InsertNode(txtToInsert, jsonNode->pos.line, node);
77-
78- for (auto jsonNextNode : jsonNode->childs)
79- {
80- if (jsonNextNode)
81- InsertItem(jsonNextNode, newNode);
82- }
83- }*/
84- }
85-
8647bool TreeViewCtrl::IsExpanded (HTREEITEM node) const
8748{
8849 return TreeView_GetItemState (m_hTree, node, TVIS_EXPANDED) & TVIS_EXPANDED;
0 commit comments