Z zzy9904 Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-10 #1 我想用setwindowtext更改窗口的标题,但是如果目标程序是最小化状态的(就是在任务栏上时)就改不了,请问这是为什么??怎样才能改掉??
A Aiirii Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-10 #2 最小化應該修改 Application.Handle 對應的
E ETimeFly Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-10 #3 setwindowtext(Application.Handle ,……)
迷 迷糊 Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-10 #5 最小化也可以修改啊<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> h:hwnd;<br>begin<br> h:=findwindow(nil,'计算器');<br> if h=0 then<br> showmessage('window not find')<br> else<br> setwindowtext(h,'asasasa');<br>end;
最小化也可以修改啊<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> h:hwnd;<br>begin<br> h:=findwindow(nil,'计算器');<br> if h=0 then<br> showmessage('window not find')<br> else<br> setwindowtext(h,'asasasa');<br>end;
Z zzy9904 Unregistered / Unconfirmed GUEST, unregistred user! 2003-12-10 #6 晕倒,是能改,我的窗口句柄没取出来,要查找的类写错了,谢谢各位兄弟了