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

Method GetNodeIndex

DuiLib/Control/UITreeView.cpp:652–661  ·  view source on GitHub ↗

��������: GetNodeIndex ��������: int ����˵��: ȡ��������ֵܽڵ�ĵ�ǰ����

Source from the content-addressed store, hash-verified

650 // ����˵��: ȡ��������ֵܽڵ�ĵ�ǰ����
651 //************************************
652 int CTreeNodeUI::GetNodeIndex()
653 {
654 if(!GetParentNode() && !pTreeView)
655 return -1;
656
657 if(!GetParentNode() && pTreeView)
658 return GetTreeIndex();
659
660 return GetParentNode()->GetTreeNodes().Find(this);
661 }
662
663 //************************************
664 // ��������: GetLastNode

Callers

nothing calls this directly

Calls 2

GetTreeNodesMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected