S sunswim Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-12 #1 例如,运行abc.exe,已知是由Abc.exe文件创建窗口,如何得到窗口的lpClassName<br>最简单就实现的最好,谢谢了<br>
R realLearning Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-12 #6 procedure TForm1.Button1Click(Sender: TObject);<br>var<br> Size : Integer;<br> ClassName : PChar;<br>begin<br> GetMem(ClassName,255);<br> GetClassName(已知窗口的Handle,ClassName,255);<br> Button1.Caption := ClassName;<br> FreeMem(ClassName);<br>end;
procedure TForm1.Button1Click(Sender: TObject);<br>var<br> Size : Integer;<br> ClassName : PChar;<br>begin<br> GetMem(ClassName,255);<br> GetClassName(已知窗口的Handle,ClassName,255);<br> Button1.Caption := ClassName;<br> FreeMem(ClassName);<br>end;
S sunswim Unregistered / Unconfirmed GUEST, unregistred user! 2003-04-12 #7 只知道是由abc.exe,不知道窗口的Handle,怎样得到,我刚学,谢谢!