主题:delphi listtiew 显视问题
procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
var
tem:TListItem;
s:string;
begin
s:=AThread.Connection.ReadLn;
tem:=lv9.items.add;
tem.Caption:=s;
tem.SubItems.Add(GetIPtoAdder(s))
和
procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
var
tem:TListItem;
s:string;
begin
tem:=lv9.items.add;
s:=AThread.Connection.ReadLn;
tem.Caption:=s;
tem.SubItems.Add(GetIPtoAdder(s))
我就是交换一行代码,结果就不一样,第一个是正常在view里显视的,可是第二个就会隔行显视,不知道是什么,,,我感觉应该一样啊...谢谢高手回答 [em1]
var
tem:TListItem;
s:string;
begin
s:=AThread.Connection.ReadLn;
tem:=lv9.items.add;
tem.Caption:=s;
tem.SubItems.Add(GetIPtoAdder(s))
和
procedure TForm1.IdTCPServer1Execute(AThread: TIdPeerThread);
var
tem:TListItem;
s:string;
begin
tem:=lv9.items.add;
s:=AThread.Connection.ReadLn;
tem.Caption:=s;
tem.SubItems.Add(GetIPtoAdder(s))
我就是交换一行代码,结果就不一样,第一个是正常在view里显视的,可是第二个就会隔行显视,不知道是什么,,,我感觉应该一样啊...谢谢高手回答 [em1]