急:隐藏文件复制框(25分)

N

no1

Unregistered / Unconfirmed
GUEST, unregistred user!
fillchar(frombuf,sizeof(frombuf),0);
fillchar(tobuf,sizeof(tobuf),0);
strpcopy(frombuf,pchar('c:/a'+#0#0));
strpcopy(tobuf,pchar('d:/a'+#0#0));
with opstruc do
begin
wnd:=0;
wfunc:=FO_COPY;
pfrom:=@frombuf;
pto:=@tobuf;
fflags:=fof_noconfirmation or fof_renameoncollision;
fanyoperationsaborted:=false;
hnamemappings:=nil;
lpszprogresstitle:=nil;
end;
shfileoperation(opstruc);

运行时会显示一个文件复制框,如何才能不显示。
 
fflags:=fof_noconfirmation or fof_renameoncollision or FOF_SILENT;
 
顶部