Home > Net >  C # Windows to minimize, unable to monitor the clipboard???????
C # Windows to minimize, unable to monitor the clipboard???????

Time:10-18

Is monitored by the following methods: clipboard
 [DllImport (" user32. DLL)] 
Public static extern bool AddClipboardFormatListener (IntPtr HWND);
[DllImport (" user32. DLL)]
Public static extern bool RemoveClipboardFormatListener (IntPtr HWND);
Private static int WM_CLIPBOARDUPDATE=0 x031d;

Then register to monitor:
 AddClipboardFormatListener (enclosing the Handle); 

Originally can monitor, but again after that minimize:
 this. WindowState=FormWindowState. Minimized; 

The results will not be able to monitor your clipboard,
And even whole protected override void DefWndProc (ref Message m) {} methods are invalid,
This is how to return a responsibility?

CodePudding user response:

In the Form, if we change some of its attributes, will lead to the Handle to Form corresponding to (Handle) value change, at this time, if the related methods to update the Handle will not lead to unacceptable to duplicate events,

CodePudding user response:

Looking down on the handle is changed
  •  Tags:  
  • C #
  • Related