Q
qhx
Unregistered / Unconfirmed
GUEST, unregistred user!
Delphi 2.0高级程序设计指南第六章的例子:
如果open目录,却打开了Explorer,本来是打开下一层目录。
procefure TFMForm.Open1Click(Sender: Tobject);
begin
With FileList do
begin
if HasAttr(FileName,faDirectory) then
DirectoryOutline.Directory := FileName
else
ExecuteFile(FileName,' ' ,Directory,SW_SHOW);
end;
end;
如果open目录,却打开了Explorer,本来是打开下一层目录。
procefure TFMForm.Open1Click(Sender: Tobject);
begin
With FileList do
begin
if HasAttr(FileName,faDirectory) then
DirectoryOutline.Directory := FileName
else
ExecuteFile(FileName,' ' ,Directory,SW_SHOW);
end;
end;