Tsukikage.WindowsUtil.WindowSubclassingMessageFilter.WndProc C# (CSharp) Метод

WndProc() приватный Метод

private WndProc ( IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam ) : IntPtr
hWnd System.IntPtr
msg int
wParam System.IntPtr
lParam System.IntPtr
Результат System.IntPtr
        IntPtr WndProc(IntPtr hWnd, int msg, IntPtr wParam, IntPtr lParam)
        {
            Message m = new Message()
            {
                HWnd = hWnd,
                Msg = msg,
                WParam = wParam,
                LParam = lParam,
            };

            MessageProc proc;
            if (procs.TryGetValue(msg, out proc) && proc != null)
            {
                proc(ref m);
            }
            else
            {
                CallBaseWindowProc(ref m);
            }
            return m.Result;
        }