1。远程线程注入<br>2。findcontrol找到窗体实例frmobj<br>3。你定义一个Frm : tform ;Frm := Tform(frmobj);<br>4。核心:for i:= 0 to MyFrm.ComponentCount - 1 do//找出所有Component,然后通过类判断(Tlable)找出所有的Lable;<br>5。你自己动手了。。。。。。。<br>注:这里是找到这个线程里所有的控件,要是你要修改指定的lable的内容,你只有通过该方法列出所有的修改指定的控件,要是你想一对一的修改,i dont know 了<br>这里我贴出我的FindControl:<br>function MyFindControl ( WinHandle : DWORD 
: TWinControl;<br>var<br> ThreadID : DWORD;<br> WinAtomStr : String;<br> WinAtom : TAtom;<br> RM_GetObjectInstance : DWORD;<br>begin<br> Result := nil;<br> if WinHandle = 0 then<br> exit;<br> GetWindowThreadProcessId ( WinHandle, @ThreadID 
;<br> WinAtomStr := Format( 'Delphi%.8X', [ThreadID] 
;<br> WinAtom := GlobalAddAtom ( PChar ( WinAtomStr 
 
;<br> RM_GetObjectInstance := RegisterWindowMessage(PChar(WinAtomStr));<br> if GlobalFindAtom(PChar(WinAtomStr)) = WinAtom then<br> Result := Pointer(GetProp(WinHandle, MakeIntAtom(WinAtom)))<br> else<br> Result := Pointer(SendMessage(WinHandle, RM_GetObjectInstance, 0, 0));<br>end;