IsDialogMessageA() private method

private IsDialogMessageA ( IntPtr hDlg, MSG &msg ) : bool
hDlg System.IntPtr
msg MSG
return bool
Esempio n. 1
0
        public virtual int TranslateAccelerator(MSG[] arrMsg)
        {
            MSG msg = arrMsg[0];

            if ((msg.message < NativeMethods.WM_KEYFIRST || msg.message > NativeMethods.WM_KEYLAST) && (msg.message < NativeMethods.WM_MOUSEFIRST || msg.message > NativeMethods.WM_MOUSELAST))
            {
                return(1);
            }

            return((NativeMethods.IsDialogMessageA(this.panel.Handle, ref msg)) ? 0 : 1);
        }
Esempio n. 2
0
        int IPropertyPage.TranslateAccelerator(MSG[] pMsg)
        {
            if (pMsg == null)
            {
                throw new ArgumentNullException("arrMsg");
            }
            MSG msg = pMsg[0];

            if ((msg.message < NativeMethods.WM_KEYFIRST || msg.message > NativeMethods.WM_KEYLAST) && (msg.message < NativeMethods.WM_MOUSEFIRST || msg.message > NativeMethods.WM_MOUSELAST))
            {
                return(1);
            }

            return(NativeMethods.IsDialogMessageA(this.Control.Handle, ref msg) ? 0 : 1);
        }
Esempio n. 3
0
        public virtual int TranslateAccelerator(MSG[] arrMsg)
        {
            if (arrMsg == null)
            {
                throw new ArgumentNullException("arrMsg");
            }

            MSG msg = arrMsg[0];

            if ((msg.message < NativeMethods.WM_KEYFIRST || msg.message > NativeMethods.WM_KEYLAST) && (msg.message < NativeMethods.WM_MOUSEFIRST || msg.message > NativeMethods.WM_MOUSELAST))
            {
                return(1);
            }

            return((NativeMethods.IsDialogMessageA(this.panel.Handle, ref msg)) ? 0 : 1);
        }