Ver Mensaje Individual
  #1  
Antiguo 12-10-2008
madiazg madiazg is offline
Miembro
 
Registrado: sep 2005
Ubicación: Canarias
Posts: 120
Reputación: 19
madiazg Va por buen camino
Elegir Carpeta

Hola a todos,
para elegir una carpeta dentro del disco duro, utilizo:

Código:
var
  BrowseInfo  : TBrowseInfo;
  PIDL        : PItemIDList;
  DisplayName : array[0..MAX_PATH] of Char;
....

begin
   FillChar(BrowseInfo,SizeOf(BrowseInfo),#0);
   BrowseInfo.hwndOwner      := Handle;
   BrowseInfo.pszDisplayName := @DisplayName[0];
   BrowseInfo.lpszTitle      := PAnsiChar(MensajeLW24);
   BrowseInfo.ulFlags        := BIF_RETURNONLYFSDIRS or BIF_NEWDIALOGSTYLE;
   PIDL := SHBrowseForFolder(BrowseInfo);
   if Assigned(PIDL) then
   if SHGetPathFromIDList(PIDL, DisplayName) then
   begin
     NuevaCarpeta := DisplayName;
......
¿Saben cómo podría indicar una ruta inicial?

Saludos...
Responder Con Cita