var
   b:tbrowseinfo;
   d:array[0..260] of char;
   i:pitemidlist;
   s:string;
begin
   b.hwndowner:=self.handle;
   b.pidlroot:=nil;
   b.pszdisplayname:=nil;
   b.lpsztitle:='请选择';
   b.ulflags:=0;
   b.lpfn:=nil;
   b.lparam:=0;
   b.iimage:=0;
   i:=shbrowseforfolder(b);
   if i<>nil then
   begin
      shgetpathfromidlist(i,@d);
      s:=string(d);
   end;
   if s<>'' then
   begin
     s:=s;
   end;
end;