Ejemplo n.º 1
0
 /// <summary>
 /// 消息监听
 /// </summary>
 /// <param name="m"></param>
 protected override void WndProc(ref Message m)
 {
     if (m_host != null)
     {
         if (m_host.onMessage(ref m) > 0)
         {
             return;
         }
     }
     base.WndProc(ref m);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 消息监听
 /// </summary>
 /// <param name="m"></param>
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == 0x100 || m.Msg == 260)
     {
         if (m_native != null)
         {
             char key = (char)m.WParam;
             if (m_xml is MainFrame)
             {
                 (m_xml as MainFrame).showSearchDiv(key);
             }
         }
     }
     if (m_host != null)
     {
         if (m_host.onMessage(ref m) > 0)
         {
             return;
         }
     }
     base.WndProc(ref m);
 }