Exemple #1
0
                private void OnSend(Ddeml.MONMSGSTRUCT mon)
                    {
                        var m = new Message();
                        m.HWnd = mon.hwndTo;
                        m.Msg = mon.wMsg;
                        m.LParam = mon.lParam;
                        m.WParam = mon.wParam;

                        var args = new DdemlMessageActivityEventArgs(DdemlMessageActivityKind.Send, m, mon.hTask);

                        if (MessageActivity != null)
                            MessageActivity(this, args);
                    }
Exemple #2
0
        private void OnPost(Ddeml.MONMSGSTRUCT mon)
        {
            Message m = new Message();
            m.HWnd = mon.hwndTo;
            m.Msg = mon.wMsg;
            m.LParam = mon.lParam;
            m.WParam = mon.wParam;

            DdemlMessageActivityEventArgs args = new DdemlMessageActivityEventArgs(DdemlMessageActivityKind.Post, m, mon.hTask);

            if (MessageActivity != null)
            {
                MessageActivity(this, args);
            }
        }
        private void OnSend(Ddeml.MONMSGSTRUCT mon)
        {
            Message m = new Message();
            m.HWnd = mon.hwndTo;
            m.Msg = mon.wMsg;
            m.LParam = mon.lParam;
            m.WParam = mon.wParam;

            DdemlMessageActivityEventArgs args = new DdemlMessageActivityEventArgs(DdemlMessageActivityKind.Send, m, mon.hTask);

            if (MessageActivity != null)
            {
                MessageActivity(this, args);
            }
        }
 internal DdeMessageActivityEventArgs(DdemlMessageActivityEventArgs args)
     : base(args)
 {
     _DdemlObject = args;
 }