procedure TForm1.FormCreate(Sender: TObject);
var
select1:Tlistitem;
i,j:integer;
begin
j:=0;
for i:=0 to ShellListView1.Items.Count-1 do
begin
select1:=ShellListView1.items;
if select1.selected=true then
begin
j:=j+1;
StatusBar1.Panels[0].Text:=inttostr(j)+'个对象';
end
else
[blue]StatusBar1.Panels[0].Text:=inttostr(i+1)+'个对象';[/blue]
end;
请看一下:不管我选不选中ShellListView中的文件,只执行else下的语句?