请问怎样调用“文件属性”对话框 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在程序中调出“文件属性”的对话框 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Shellapi;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;function ShowFileProperties(FileName: String; Wnd: HWND):Boolean;var Form1: TForm1;implementation{$R *.dfm}function SHFileProperties(handle:hwnd;uflags:dword;name:pchar;str:pchar):dword;stdcall;external 'shell32.dll' index 178;function ShowFileProperties(FileName: String; Wnd: HWND):Boolean;var sfi: TSHELLEXECUTEINFO;begin with sfi do begin cbSize := SizeOf(sfi); lpFile := PAnsiChar(FileName); Wnd := Wnd; fMask := SEE_MASK_NOCLOSEPROCESS or SEE_MASK_INVOKEIDLIST or SEE_MASK_FLAG_NO_UI; lpVerb := PAnsiChar('properties'); lpIDList := nil; lpDirectory := nil; nShow := 0; hInstApp := 0; lpParameters := nil; dwHotKey := 0; hIcon := 0; hkeyClass := 0; hProcess := 0; lpClass := nil; end; Result := ShellExecuteEX(@sfi);end;procedure TForm1.Button1Click(Sender: TObject);beginShowFileProperties('c:\boot.ini',handle);end;end. 给新产品征名 一个散分的问题,请各位指点 一个函数可以返回多种类型的值吗? 大家快来帮忙呀!!!!急急急 <<<<<<<<<C/S数据库编程问题,要用到SOCKET>>>>>>>>>>> 数据库存盘 怎么欺骗一段js代码本地执行? 如果把一个文件(*.*) 写入数据库并在需要的时候读出来恢复成一个文件。(Delphi+Sql Server) 日期查询问题: 用Printer.Canvas打印时,如何用代码设置纸张大小? 请问如何删除一子目录及其下面的文件 我把query1查询得到数据集放到一张新表中,用DBGrid可以显示出新表有数据,但就是select不出来?
unit Unit1;interfaceuses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Shellapi;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;function ShowFileProperties(FileName: String; Wnd: HWND):Boolean;
var
Form1: TForm1;implementation{$R *.dfm}
function SHFileProperties(handle:hwnd;uflags:dword;name:pchar;str:pchar):dword;stdcall;external 'shell32.dll' index 178;function ShowFileProperties(FileName: String; Wnd: HWND):Boolean;
var sfi: TSHELLEXECUTEINFO;
begin
with sfi do begin
cbSize := SizeOf(sfi);
lpFile := PAnsiChar(FileName);
Wnd := Wnd;
fMask := SEE_MASK_NOCLOSEPROCESS or SEE_MASK_INVOKEIDLIST or SEE_MASK_FLAG_NO_UI;
lpVerb := PAnsiChar('properties');
lpIDList := nil;
lpDirectory := nil;
nShow := 0;
hInstApp := 0;
lpParameters := nil;
dwHotKey := 0;
hIcon := 0;
hkeyClass := 0;
hProcess := 0;
lpClass := nil;
end;
Result := ShellExecuteEX(@sfi);
end;procedure TForm1.Button1Click(Sender: TObject);
begin
ShowFileProperties('c:\boot.ini',handle);
end;end.