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. Manualy Scrolling A TreeCtrl

Manualy Scrolling A TreeCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structures
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.
  • M Offline
    M Offline
    Marissa182
    wrote on last edited by
    #1

    I have a tree control where i have drag and drop however if you want to drag to something thats scrolled off the screen you have to using the arrow keys or scroll button while still holding the item your dragging my question is how can i make it so when the user drags the mouse to the bottom its starts scroll untill the user stops moving the mouse i tried ScrollWindow But that seemed all screwed up and i tried mapping the OnVScroll but im not really sure what paremeters to pass it can someone pls point me in the right direction thanks

    V 1 Reply Last reply
    0
    • M Marissa182

      I have a tree control where i have drag and drop however if you want to drag to something thats scrolled off the screen you have to using the arrow keys or scroll button while still holding the item your dragging my question is how can i make it so when the user drags the mouse to the bottom its starts scroll untill the user stops moving the mouse i tried ScrollWindow But that seemed all screwed up and i tried mapping the OnVScroll but im not really sure what paremeters to pass it can someone pls point me in the right direction thanks

      V Offline
      V Offline
      Vitali Halershtein
      wrote on last edited by
      #2

      Hi Marissa, You can use varuious tecknikues to implement drag and drop, but in any case you can use HitTest and EnshureVisible to determine position and show item in a tree control. Vitali

      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