Clipboard issue.
-
How can I determine that the clipboard content was dropped to the target window? I implemented a code which moves data between two application using the COleDropSource stuff. Since the data are moved (NOT copied) between the applications I need to know when can I remove the moved data from the source application. So the question is how to determine that the target application pasted/accepted the data from the clipboard (or the drag&drop finished) and it is safe to remove the source data. Can anybody help me with this? Thanks, Abyss
-
How can I determine that the clipboard content was dropped to the target window? I implemented a code which moves data between two application using the COleDropSource stuff. Since the data are moved (NOT copied) between the applications I need to know when can I remove the moved data from the source application. So the question is how to determine that the target application pasted/accepted the data from the clipboard (or the drag&drop finished) and it is safe to remove the source data. Can anybody help me with this? Thanks, Abyss
Abyss wrote: How can I determine that the clipboard content was dropped to the target window? I implemented a code which moves data between two application using the COleDropSource stuff. Since the data are moved (NOT copied) between the applications I need to know when can I remove the moved data from the source application. So the question is how to determine that the target application pasted/accepted the data from the clipboard (or the drag&drop finished) and it is safe to remove the source data. That’s not a very good design idea. What if I the end user of your app have important information on the clipboard? Here comes your app and whips it out. Your better off posting a user defined message from one app to the other to pass the data. Alternatively you can us IPC “Inter-Process Communication”. A Simple Wrapper for Sharing Data Structures Between Processes[^] Inter-Process Communication[^] ------------------------------- DEBUGGING : Removing the needles from the haystack.