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. Scrolling a tree view

Scrolling a tree view

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 view that has some drag and drop features however i would like to cuase the tree to scroll when the user drags item to the bottom of the tree does how do i cuase the tree view to scroll ? on a side not i want to be able to handle multiple popup menu clicks in 1 function within the tree view how would i determine what menu item was clicked? and is there a function that already exists that i can use?

    M 1 Reply Last reply
    0
    • M Marissa182

      I have a tree view that has some drag and drop features however i would like to cuase the tree to scroll when the user drags item to the bottom of the tree does how do i cuase the tree view to scroll ? on a side not i want to be able to handle multiple popup menu clicks in 1 function within the tree view how would i determine what menu item was clicked? and is there a function that already exists that i can use?

      M Offline
      M Offline
      Maximilien
      wrote on last edited by
      #2

      1- I think the way to do this is to add a timer and manually scroll the tree view.( I might be wrong) but I don't know how to do it right now. 2- you can use the ON_COMMAND_RANGE() message to send multiple commands to a single function, the handler receives the ID as a parameter; but you need to have the IDs consecutive, which can be dangerous in the long run; it is preferable to have one handler for each menu entry and from each function, call one other function. If you are using popup menu with TrackPopupMenu, you can have tre function return which menu item you clicked.


      Maximilien Lincourt "Never underestimate the bandwidth of a station wagon filled with backup tapes." ("Computer Networks" by Andrew S Tannenbaum )

      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