H
hthugm
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure delay(msecondWORD);
var
nowtimeWORD;
begin
nowtime:=GetTickCount ;
while GetTickCount<nowtime+msecond do
Application.ProcessMessages ;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
delay(120000);
end;
一运行程序我先点击Button按钮再按窗体上的‘关闭’按钮,可窗体根本不关闭,也就是说
Application.ProcessMessages对WM_QUIT怎么处理,希望指教?
var
nowtimeWORD;
begin
nowtime:=GetTickCount ;
while GetTickCount<nowtime+msecond do
Application.ProcessMessages ;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
delay(120000);
end;
一运行程序我先点击Button按钮再按窗体上的‘关闭’按钮,可窗体根本不关闭,也就是说
Application.ProcessMessages对WM_QUIT怎么处理,希望指教?