WM_GETTEXT好像是针对控件的消息,具体使用可以这样做。<br>var<br> h:HWND;<br> buffer:array[0..255] of char;<br>begin<br> h:=FindWindow('TForm1','MyForm');<br> if h<>0 then<br> SendMessage(h,WM_GETTEXT,255,LongInt(@buffer));<br>end;