procedure TDragFileForm.WMDropFiles(var Message: TMessage);
var
index, iCount: integer;
FileName: array [0..255] of char;
begin
index := -1;
iCount := DragQueryFile(Message.WParam, index, FileName, 255);
for index := 0 to iCount - 1 do
begin
DragQueryFile(Message.WParam, index, FileName, 255);
ShowMessage(FileName);
end;
DragFinish(Message.WParam);
end;
var
index, iCount: integer;
FileName: array [0..255] of char;
begin
index := -1;
iCount := DragQueryFile(Message.WParam, index, FileName, 255);
for index := 0 to iCount - 1 do
begin
DragQueryFile(Message.WParam, index, FileName, 255);
ShowMessage(FileName);
end;
DragFinish(Message.WParam);
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货