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. Drag & drop

Drag & drop

Scheduled Pinned Locked Moved C / C++ / MFC
helpjavascriptquestion
4 Posts 3 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.
  • J Offline
    J Offline
    Johannes Grunedal
    wrote on last edited by
    #1

    Hi there! I have a problem with the drag & drop feature. My situation is this: I have a dialog based program and I would like to drag & drop files from e.g. the Explorer window onto my program. This works fine IF I drop on the window! The problem is that I want to drop on my push button (to be able to distinguish it from another push button) but I can't get it to react on these buttons! Could anyone pliz help me?????????? /The rookie! Best regards.

    M 1 Reply Last reply
    0
    • J Johannes Grunedal

      Hi there! I have a problem with the drag & drop feature. My situation is this: I have a dialog based program and I would like to drag & drop files from e.g. the Explorer window onto my program. This works fine IF I drop on the window! The problem is that I want to drop on my push button (to be able to distinguish it from another push button) but I can't get it to react on these buttons! Could anyone pliz help me?????????? /The rookie! Best regards.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      You need to make each button a drop target, so you know which control the files are dropped over. Check out this article[^] that covers how to accept drags. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!

      T 1 Reply Last reply
      0
      • M Michael Dunn

        You need to make each button a drop target, so you know which control the files are dropped over. Check out this article[^] that covers how to accept drags. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Pinky, are you pondering what I'm pondering? I think so Brain, but if we shaved our heads, we'd look like weasels!

        T Offline
        T Offline
        twing
        wrote on last edited by
        #3

        No CLSID_DragDropHelper,IID_IDropTargetHelper and so on in this article[^] Could u help? Hello World!

        M 1 Reply Last reply
        0
        • T twing

          No CLSID_DragDropHelper,IID_IDropTargetHelper and so on in this article[^] Could u help? Hello World!

          M Offline
          M Offline
          Michael Dunn
          wrote on last edited by
          #4

          Get the Platform SDK. --Mike-- Ericahist | CP SearchBar v2.0.2 | Homepage | RightClick-Encrypt | 1ClickPicGrabber Pinky, are you pondering what I'm pondering? I think so Brain, but how will we fit the hamster inside the accordion?

          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