MCPcopy Create free account
hub / github.com/cinience/RedisStudio / GetTreeIndex

Method GetTreeIndex

DuiLib/Control/UITreeView.cpp:634–645  ·  view source on GitHub ↗

��������: GetNodeIndex ��������: int ����˵��: ȡ��ȫ������ͼ������

Source from the content-addressed store, hash-verified

632 // ����˵��: ȡ��ȫ������ͼ������
633 //************************************
634 int CTreeNodeUI::GetTreeIndex()
635 {
636 if(!pTreeView)
637 return -1;
638
639 for(int nIndex = 0;nIndex < pTreeView->GetCount();nIndex++){
640 if(this == pTreeView->GetItemAt(nIndex))
641 return nIndex;
642 }
643
644 return -1;
645 }
646
647 //************************************
648 // ��������: GetNodeIndex

Callers 2

AddAtMethod · 0.80
AddChildNodeMethod · 0.80

Calls 2

GetCountMethod · 0.45
GetItemAtMethod · 0.45

Tested by

no test coverage detected