請問這段程式可以改由Button將值傳入嗎?? |
尚未結案
|
alvin0921
一般會員 發表:7 回覆:7 積分:2 註冊:2004-02-16 發送簡訊給我 |
procedure Tmainform.WMDropFiles(var Msg: TWMDropFiles);
var
lStr,lExt: string;
lDateTime: TDateTime;
lDirLen,lInc: integer;
CFilename: array [0..MAX_Path] of Char;
lDirStr: string;
lStringList: TStringList;
begin
lStringList := TStringList.Create;
showmessage(lstringlist.Text);
try
lInc := 0;
while DragQueryFile(Msg.Drop,lInc,CFilename,Max_Path) > 0 do begin
inc(lInc);
lStringList.Add(CFilename);
Msg.Result := 0;
end;//while
finally
DragFinish(Msg.Drop);
end; //try
if lStringList.Count > 0 then
ProcessStringList(lStringList);
lStringList.Free;
end;
|
jackalan
初階會員 發表:20 回覆:88 積分:36 註冊:2003-11-08 發送簡訊給我 |
|
alvin0921
一般會員 發表:7 回覆:7 積分:2 註冊:2004-02-16 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |