Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   API de Windows (https://www.clubdelphi.com/foros/forumdisplay.php?f=7)
-   -   Ventana Propiedades... (https://www.clubdelphi.com/foros/showthread.php?t=27351)

[Gunman] 17-11-2005 23:46:01

Ventana Propiedades...
 
Hola! Me gustaria saber si alguno de vosotros conoce algun procedimiento que llama la ventana de propiedades de windows de un archivo/carpeta. Me explico? No sé si existirá, pero bueno, más vale preguntar antes de empezar a hacerla yo mismo.
Gracias por anticipado.

dec 18-11-2005 00:26:46

Hola,

Cita:

Empezado por Scalabium Software
Código Delphi [-]
 uses
   ShellApi;
 
 function ShowFilePropertiesDialog(hWndOwner: HWND;
   const FileName: string): Boolean;
 var
   Info: TShellExecuteInfo;
 begin
   { Fill in the SHELLEXECUTEINFO structure }
   with Info do
   begin
     cbSize := SizeOf(Info);
     fMask := SEE_MASK_NOCLOSEPROCESS or
              SEE_MASK_INVOKEIDLIST or
              SEE_MASK_FLAG_NO_UI;
     wnd  := hWndOwner;
     lpVerb := 'properties';
     lpFile := pChar(FileName);
     lpParameters := nil;
     lpDirectory := nil;
     nShow := 0;
     hInstApp := 0;
     lpIDList := nil;
   end;
 
   { Call Windows to display the properties dialog. }
   Result := ShellExecuteEx(@Info);
 end;

El código está literalmente copiado de: To display a Property dialog for file, folder or drive, en la página Web de Scalabium Software.

[Gunman] 18-11-2005 07:08:55

Mmmm, muchas gracias Dec, esta misma tarde lo pruebo...


La franja horaria es GMT +2. Ahora son las 20:30:07.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi