3,055
社区成员
发帖
与我相关
我的任务
分享
m_tree.SetItemData(handle_TreeRoot,0x0003);//设置数据为0x0003
//上面的修改一下
HTREEITEM handle_TreeRoot; //保存树的根节点句柄
handle_TreeRoot = m_tree.InsertItem("mytree",0,1);//添加树的根节点
m_tree.SetItemData(handle_TreeRoot,0x0003);//设置数据为0x0003
HTREEITEM handle_TreeRoot; //保存树的根节点句柄
handle_TreeRoot = m_tree.InsertItem("0-"+cstr_TreeRoottext,0,1);//添加树的根节点
m_tree.SetItemData(handle_TreeRoot,0x0003);//设置数据为0x0003