Example #1
0
 protected override void DefWndProc(ref Message m)
 {
     if (m.Msg == WM_CLIPBOARDUPDATE)
     {
         ClipBoardChanged?.Invoke();
     }
     base.DefWndProc(ref m);
 }
Example #2
0
        protected virtual IntPtr WndProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled)
        {
            switch (msg)
            {
            case WM_CLIPBOARDUPDATE:
            {
                if (isclipDoubleClick <= 0)
                {
                    if (ClipBoardChanged != null)
                    {
                        // HTodo  :触发剪贴板变化事件
                        ClipBoardChanged.Invoke();
                    }
                }

                isclipDoubleClick--;
            }
            break;
            }

            return(IntPtr.Zero);
        }
Example #3
0
 private void ClipBoardChangedHandler()
 {
     ClipBoardChanged?.Invoke();
 }