注册 登录
编程论坛 Delphi论坛

如何让ShellListView控件只显示固定的几个文件

老农 发布于 2008-08-07 14:53, 2298 次点击
我搜索到了一 些文件   怎么让这些文件  放到ShellListView里呢! 现在我是放在listbox里面
procedure TForm1.Button2Click(Sender: TObject);
var
sr:tsearchrec;
i:integer;
begin
i:=self.ShellListView1.ItemIndex;

 self.ListBox1.Items.Clear;
 self.ShellListView1.Items.Clear;
 if findfirst('d:\picturelook\images\*1*.jpg',faAnyFile,sr)=0  then
 begin
  while findnext(sr)=0 do
  begin
//self.ShellListView1.GetNamePath:=sr.Name;
self.ListBox1.Items.Add(sr.Name);
  end;
  findclose(sr);
 end;
end;
2 回复
#2
liangjian02008-08-07 15:15
不会  没学过















" border="0" />
[url=http://www.]在线小游戏[/url]
#3
老农2008-08-07 22:29
高手呢  老鸟出来说话了
斑竹总会吧
1