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. Multiple selection in a CTreeCtrl ???

Multiple selection in a CTreeCtrl ???

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiongraphicsdesigngame-dev
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
    Mr Freeze
    wrote on last edited by
    #1

    Hi, I'm wondering why there seem not be possible to select more than one item in a CTreeCtrl. Or am I wrong? My problem is simple: I have a collection of 3D objects that I render in an OpenGL window. In a separate window I want to show the hierarchical view of these objects and at the same time to be able to select one or more of them to set their properties (like visible/invisible, solid/wireframe, ...) What is the best method to solve my problem:confused: Thanks for your help :) Marc

    J 1 Reply Last reply
    0
    • M Mr Freeze

      Hi, I'm wondering why there seem not be possible to select more than one item in a CTreeCtrl. Or am I wrong? My problem is simple: I have a collection of 3D objects that I render in an OpenGL window. In a separate window I want to show the hierarchical view of these objects and at the same time to be able to select one or more of them to set their properties (like visible/invisible, solid/wireframe, ...) What is the best method to solve my problem:confused: Thanks for your help :) Marc

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      Mr.Freeze wrote: I'm wondering why there seem not be possible to select more than one item in a CTreeCtrl. Or am I wrong?    You are correct: The native TreeView Control does not support multiple selection.  There is code available on this site, and also on code*uru, that implements multiple selection.  The "quick-n-dirty" way of doing it is to use the TVIS_DROPHILITED state to simulate selection.    Peace! -=- James.

      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