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. [MFC] OLE Drag & Drop and Drag image

[MFC] OLE Drag & Drop and Drag image

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++com
3 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.
  • M Offline
    M Offline
    Maarten Kools
    wrote on last edited by
    #1

    Hi, I'm implementing drag & drop through OLE. I actually have that part working, but I also want (or actually need) to show a drag image during the actual drag. My idea was to use CImageList's functionality, so when the drag begins, I call BeginDrag and DragEnter, during GiveFeedback I keep calling DragMove, with the current cursor position, and when the drag ends, I call DragLeave and EndDrag. These functions all work, that is, they don't return error codes or anything. But still the image doesn't show. I don't really know what I would be doing wrong, or what I'm missing. Is there perhaps another way to show a drag image during an OLE drag. Hope someone can help me out here, thanks.

    J 1 Reply Last reply
    0
    • M Maarten Kools

      Hi, I'm implementing drag & drop through OLE. I actually have that part working, but I also want (or actually need) to show a drag image during the actual drag. My idea was to use CImageList's functionality, so when the drag begins, I call BeginDrag and DragEnter, during GiveFeedback I keep calling DragMove, with the current cursor position, and when the drag ends, I call DragLeave and EndDrag. These functions all work, that is, they don't return error codes or anything. But still the image doesn't show. I don't really know what I would be doing wrong, or what I'm missing. Is there perhaps another way to show a drag image during an OLE drag. Hope someone can help me out here, thanks.

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      The article "Implementing Reusable Drag & Drop Classes" By Leon Finker in section MFC / C++ >> Shell Programming >> General, should provide you with enough information. Good Luck! INTP

      M 1 Reply Last reply
      0
      • J John R Shaw

        The article "Implementing Reusable Drag & Drop Classes" By Leon Finker in section MFC / C++ >> Shell Programming >> General, should provide you with enough information. Good Luck! INTP

        M Offline
        M Offline
        Maarten Kools
        wrote on last edited by
        #3

        At first glance, it looks wonderful. Thank you :)

        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