protected override void DefWndProc(ref Message m) { if (m.Msg == WM_CLIPBOARDUPDATE) { ClipBoardChanged?.Invoke(); } base.DefWndProc(ref m); }
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); }
private void ClipBoardChangedHandler() { ClipBoardChanged?.Invoke(); }