开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜