G goddy Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-26 #1 為什么用 GetWindowText(hwnd,buffer1,100); 不能取得類為Edit里面的內容呢
S shbjkl Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-26 #2 用错api了吧。SendMessage(hWnd,WM_GETTEXT,buffer1,Integer(@buffer1[0]));
Q qfgj Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-26 #3 procedure TForm1.Button1Click(Sender: TObject);<br>var s:array[0..10] of char;<br>i:integer;<br>begin<br>GetWindowText(edit1.Handle,s,10);<br>for i:=0 to length(edit1.Text) do<br>edit2.Text:=edit2.Text+s;<br>end;
procedure TForm1.Button1Click(Sender: TObject);<br>var s:array[0..10] of char;<br>i:integer;<br>begin<br>GetWindowText(edit1.Handle,s,10);<br>for i:=0 to length(edit1.Text) do<br>edit2.Text:=edit2.Text+s;<br>end;
G goddy Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-26 #4 SendMessage(hwnd,WM_GETTEXT,sizeof(buffer1),(LPARAM)buffer1);<br>搞定