K kjj Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-03 #1 现已知treeview中某节点显示的文本内容,请问如何得到该节点的index?
X xWolf Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-03 #2 function GetItemText: string; var I: Integer; begin Result := -1; for I := 0 to TreeView1.Items.Count - 1 do begin if TreeView1.Items.Text = 'XXXX' then begin Result := I; Exit; end; end; end;
function GetItemText: string; var I: Integer; begin Result := -1; for I := 0 to TreeView1.Items.Count - 1 do begin if TreeView1.Items.Text = 'XXXX' then begin Result := I; Exit; end; end; end;
L liuchuanbo Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-03 #3 indexof(treeview1.selected) 返回在本结点中被选择的子结点的序号
N NetGhost Unregistered / Unconfirmed GUEST, unregistred user! 2000-04-03 #5 FindInfo: LV_FINDINFO; if SendMessage(ListHandle, LVM_FINDITEM, -1, DWORD(@FindInfo))=-1 then