使用treecontrol的问题,怎么判定了选中那个节点
1个回答
展开全部
HTREEITEM hTreeSubItem = m_oYourTreeCtrl.GetChildItem(hYourTreeItem);
while(hTreeSubItem)//处理子Item;
{
HTREEITEM hTempItem= hTreeSubItem;
hTreeSubItem = m_oYourTreeCtrl.GetNextItem(hTreeSubItem, TVGN_NEXT);
m_ooYourTreeCtrl.DeleteItem(hTempItem);
}
while(hTreeSubItem)//处理子Item;
{
HTREEITEM hTempItem= hTreeSubItem;
hTreeSubItem = m_oYourTreeCtrl.GetNextItem(hTreeSubItem, TVGN_NEXT);
m_ooYourTreeCtrl.DeleteItem(hTempItem);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询