GoodHope ·
·
阅读: 657
procedure TThread.Synchronize(Method: TThreadMethod);
begin
FSynchronizeException := nil;
FMethod := Method;
SendMessage(ThreadWindow, CM_EXECPROC, 0, Longint(Self));
if Assigned(FSynchronizeException) then raise FSynchronizeException;
end;
以上是D5的源码。D6开始的源码看得眼晕,偶就没再研究过VCL了。