Y
ysl66
Unregistered / Unconfirmed
GUEST, unregistred user!
试了两种方法都不成功:<br>1两个程序都定义了相同的消息const Mymessage = USER + $1000;<br>一个执行消息发送(postMessage() or sendMessage()),<br>另一个执行接收消息(procedure get_message(var Message:TMessage)<br>;Message MyMessage<br>2使用两个程序在创建时调用RegisterWindowMessage()函数注册同一个消息<br>一个执行消息发送(postMessage() or sendMessage()),<br>另一个执行接收消息<br>procedure TForm1.DefaultHandler(var Msg);<br>begin<br> inherited DefaultHandler(Msg);<br> {if the user defined message was recieved...}<br> if (TMessage(Msg).Msg=UserMessage) then<br> begin<br> showmessage('1111111111111');<br> end;<br>end;<br>是按照Window API帮助做的也不成功。<br>