J
jdelphi
Unregistered / Unconfirmed
GUEST, unregistred user!
function TForm1.Getch(hWnd:Integer;lparam:LongInt):Boolean;StdCall;<br>var<br> ClassBuffer:array [0..50] of char;<br>begin<br> showmessage('ok');<br>end;<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> h:Integer;<br> ch:array [0..255] of char;<br>begin<br> h:=FindWindow(nil,'TE-Oicq Receive Dlg');<br> if h>0 then<br> begin<br> if not EnumChildWindows(h,@TForm1.GetCh,Integer(@ch[0])) then<br> showmessage('Open Error');<br> end;<br>end;<br>0720版的QQ可以正确进入到GetCh中的。<br>