J jericho3164 Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-12 #1 的程序启动时,启动了另外一个小程序,怎样在主程序退出时也把那个小程序退出掉?
Z ZRWeng Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-12 #2 var<br> ExeHandle: THandle;<br>begin<br> ExeHandle := findWindow(nil, pchar('小程序窗口标题'));<br> if ExeHandle <> 0 then<br> PostMessage(ExeHandle, WM_Close, 0, 0);<br>end;<br>
var<br> ExeHandle: THandle;<br>begin<br> ExeHandle := findWindow(nil, pchar('小程序窗口标题'));<br> if ExeHandle <> 0 then<br> PostMessage(ExeHandle, WM_Close, 0, 0);<br>end;<br>
X xyl999 Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-12 #3 findwindow();<br>sendMessage();