예제 #1
0
        protected override void WndProc(ref Message m) {
            switch (m.Msg) {
                case 0x302:
                    if (OnTextPasted != null) {
                        string text = (string)m.GetLParam(m.GetType());
                        base.WndProc(ref m);
                        OnTextPasted.Invoke(this, new EventArgs());
                    } else {
                        string text = (string)m.GetLParam(m.GetType());
                        base.WndProc(ref m);
                    }
                    break;

                default:
                    base.WndProc(ref m);
                    break;
            }
        }