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. TreeView_CreateDragImage

TreeView_CreateDragImage

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsdata-structurestutorialquestion
1 Posts 1 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.
  • L Offline
    L Offline
    Luther Baker
    wrote on last edited by
    #1

    I am implementing a Drag and Drop operation on a TreeView. I've supplied a bitmap to my tree and it draws wonderfully. Now, when the user begins dragging - I call TreeView_CreateDragImage ... and for the most part, it works except that the dragging image (a folder) overlaps the textual part of the drag so that when you are draggin and move the mouse around, you can't see the first few characters of the TreeView node's text in the dragging image. I can't see how to affect this. Are my bitmaps too large? I initially supplied a bitmap strip 128x16 and told the TreeView the images were 16x16. I've move the hotspot around in TreeView_BeginDrag ... For the most part, CreateDragImage is a black box - it just creates the draggable image. I've no idea how to affect the placement of the text relative to the image. Any suggestions would be appreciated. Thanks in advance, -Luther

    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