Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Clipboard issue.

Clipboard issue.

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abyss
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • A 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

      S Offline
      S Offline
      S Douglas
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups