/// <summary>
        /// 发送完成标志信息到消息提示窗体
        /// </summary>
        /// <param name="billNo">单据编号</param>
        private void SendFinishedFlagToMessagePromptForm(string billNo)
        {
            if (m_msgPromptFormHandle == null)
            {
                return;
            }

            WndMsgData msgData = new WndMsgData();

            msgData.MessageType    = MessageTypeEnum.单据消息;
            msgData.MessageContent = string.Format("{0},{1}", m_billType, billNo);

            m_wndMsgSender.SendMessage(m_msgPromptFormHandle, WndMsgSender.FinishedMsg, msgData);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 给指定窗口发送消息
 /// </summary>
 /// <param name="sendToHandle">窗口句柄</param>
 /// <param name="msgId">消息ID</param>
 /// <param name="content">消息内容</param>
 public void SendMessage(IntPtr sendToHandle, int msgId, WndMsgData content)
 {
     SendToHandle = sendToHandle;
     _SendMessage(sendToHandle, msgId, 100, ref content);
 }
Exemplo n.º 3
0
 private static extern int _SendMessage(
     IntPtr hWnd,
     int Msg,
     int wParam,
     ref WndMsgData lParam
     );