发送信息程序<br>var <br> form_hw:HWND;<br>begin<br>form_hw:=FindWindow(nil,'接收程序的caption');<br>if boolean(form_hw) then<br>SendMessage(form_hw,11111,19801129,0);<br>end;<br><br>接收信息程序中定义<br>private<br> procedure Sel_win_Change(var msg:TMessage); message 11111;<br><br>procedure TMainForm.Sel_win_Change(var msg: TMessage);<br>begin<br>if trim(floattostr(msg.WParam))='19801129' then<br>点击菜单的过程<br>end;