开发者

MFC Treeview : How to check if Treeview already contain particular child node?

开发者 https://www.devze.com 2023-01-20 13:54 出处:网络
In MFC Treeview control, how i can check condition if particular child node is already present in treeview?

In MFC Treeview control, how i can check condition if particular child node is already present in treeview?

My requirement is like if particular child node is present in treeview dont add it again in t开发者_Go百科hat treeview...

Any code snippet is welcome ........ Thanks.


You'll want to call the methods ItemHasChildren/GetChildItem and GetNextSiblingItem.

There is a code example for the GetNextSiblingItem help on MSDN.


Use CTreeCtrl GetItem method in order to get the inforamtion of perticular item in Tree view.

0

精彩评论

暂无评论...
验证码 换一张
取 消