Exemplo n.º 1
0
 public bool PreFilterMessage(ref Message m)
 {
     if (m.Msg >= NativeMethods.WM_KEYFIRST && m.Msg <= NativeMethods.WM_KEYLAST)
     {
         if (m.Msg == NativeMethods.WM_KEYDOWN && unchecked ((int)(long)m.WParam) == (int)Keys.Escape)
         {
             owner.SplitEnd(false);
         }
         return(true);
     }
     return(false);
 }
            /// <summary>
            /// </summary>
            public bool PreFilterMessage(ref Message m)
            {
                if (m.MsgInternal < User32.WM.KEYFIRST || m.MsgInternal > User32.WM.KEYLAST)
                {
                    return(false);
                }

                if (m.MsgInternal == User32.WM.KEYDOWN && (Keys)m.WParamInternal == Keys.Escape)
                {
                    _owner.SplitEnd(false);
                }

                return(true);
            }