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 and drop

drag and drop

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorialquestion
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.
  • J Offline
    J Offline
    jetournier
    wrote on last edited by
    #1

    Hello, I try to do a simple application where I can drag and drop pictures. I'm trying to use the COleDropSource class, and it's member function ::CacheData() as I read it in the Help, but I get an error message like this "CacheData is not a member of COleDropSource". What did I do wrong? Is that the right way or is there something easier/better to do it? Can anybody help me or give me an example of code that actually works? Thanks JET

    G 1 Reply Last reply
    0
    • J jetournier

      Hello, I try to do a simple application where I can drag and drop pictures. I'm trying to use the COleDropSource class, and it's member function ::CacheData() as I read it in the Help, but I get an error message like this "CacheData is not a member of COleDropSource". What did I do wrong? Is that the right way or is there something easier/better to do it? Can anybody help me or give me an example of code that actually works? Thanks JET

      G Offline
      G Offline
      gdocherty
      wrote on last edited by
      #2

      Hi, A better way is to create a temporary transparent window which covers the whole screen. Use GetSystemMetrics(SM_CXSCREEN) and GetSystemMetrics(SM_CYSCREEN) to get the window dims. Use its mouse events to control the drag.

      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