Пример #1
0
        protected override void WndProc(ref Message m)
        {
            switch ((EnumWinMsgs)m.Msg)
            {
            case EnumWinMsgs.WM_DRAWCLIPBOARD:
                GetClipboardData();
                DllUser32.SendMessage(_clipboardViewerNext, m.Msg, m.WParam, m.LParam);
                break;

            case EnumWinMsgs.WM_CHANGECBCHAIN:
                if (m.WParam == _clipboardViewerNext)
                {
                    _clipboardViewerNext = m.LParam;
                }
                else
                {
                    DllUser32.SendMessage(_clipboardViewerNext, m.Msg, m.WParam, m.LParam);
                }
                break;

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