W
wql
Unregistered / Unconfirmed
GUEST, unregistred user!
哎,兄弟你今天都没有搞定?Test_Thread = class(TThread) private { Private declarations } protected procedure Execute;
override;
public // 加入: procedure _IShowPic;
end;
Var _ThreadEnd : Boolean = false;procedure Test_Thread._IShowPic;
begin
showPicture('');
end;
procedure Test_Thread.Execute;
begin
{ Place thread code here } FreeOnTermiNate := True;
Syn(_IShowPic);// Syn...忘记了,呵呵! while ((not _ThreadEnd) and GetMessage(msg, 0, 0, 0))do
begin
TranslateMessage(msg);
DispatchMessage(msg);
end;
end;
Form1.OnClose里写:_ThreadEn:=True;
override;
public // 加入: procedure _IShowPic;
end;
Var _ThreadEnd : Boolean = false;procedure Test_Thread._IShowPic;
begin
showPicture('');
end;
procedure Test_Thread.Execute;
begin
{ Place thread code here } FreeOnTermiNate := True;
Syn(_IShowPic);// Syn...忘记了,呵呵! while ((not _ThreadEnd) and GetMessage(msg, 0, 0, 0))do
begin
TranslateMessage(msg);
DispatchMessage(msg);
end;
end;
Form1.OnClose里写:_ThreadEn:=True;