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. has anybody have any idea about dragdrop a bitmap

has anybody have any idea about dragdrop a bitmap

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

    i want to know if there is any way to drag and drop a bitmap around a window, if at all there is a way, can somebody help me out:confused: Ashok Singh

    P 1 Reply Last reply
    0
    • S shokisingh

      i want to know if there is any way to drag and drop a bitmap around a window, if at all there is a way, can somebody help me out:confused: Ashok Singh

      P Offline
      P Offline
      Paul M Watt
      wrote on last edited by
      #2

      Did you paint the bitmap to the window? Handle the WM_LBUTTONDOWN and WM_MOUSEMOVE messages to determine the position of the mouse, and the offset for which the mouse has been moved, and repaint the bitmap yourself. As long as you are doing this in just one window, it should be fairly simple. If you want to drag and drop between to applications it will be more difficult.


      Build a man a fire, and he will be warm for a day
      Light a man on fire, and he will be warm for the rest of his life!

      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