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 and ListCtrl

TreeView and ListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomdata-structurestutorial
6 Posts 3 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.
  • B Offline
    B Offline
    BLaZe
    wrote on last edited by
    #1

    :confused: Hi everybody, I don't remeber if I ask this question before but I will try to take a chance to ask it again. If there anybody know how to Link a ClistCtrl with a CTreeView like Windows Explorer when you click on a tree item the list show always different items ? Can you tell me where I Can find reference on that or source code, tutorials or can you explain it to me in details ? TIA BLaZe ICQ # 110244345 email : mpblaze@iquebec.com

    S L 2 Replies Last reply
    0
    • B BLaZe

      :confused: Hi everybody, I don't remeber if I ask this question before but I will try to take a chance to ask it again. If there anybody know how to Link a ClistCtrl with a CTreeView like Windows Explorer when you click on a tree item the list show always different items ? Can you tell me where I Can find reference on that or source code, tutorials or can you explain it to me in details ? TIA BLaZe ICQ # 110244345 email : mpblaze@iquebec.com

      S Offline
      S Offline
      Steve Driessens
      wrote on last edited by
      #2

      G'day, How about implementing a vertical splitter window and putting a tree control view in one pane and a list control view in the other? Then handle item selections in the tree and notifying the list view so that it's contents are synchronized with the tree. There may be a better way of handling this, but that's the best I can come up with for the moment. Hope this helps, Steve

      B 1 Reply Last reply
      0
      • B BLaZe

        :confused: Hi everybody, I don't remeber if I ask this question before but I will try to take a chance to ask it again. If there anybody know how to Link a ClistCtrl with a CTreeView like Windows Explorer when you click on a tree item the list show always different items ? Can you tell me where I Can find reference on that or source code, tutorials or can you explain it to me in details ? TIA BLaZe ICQ # 110244345 email : mpblaze@iquebec.com

        L Offline
        L Offline
        l a u r e n
        wrote on last edited by
        #3

        make a new project ... choose an sdi app ... choose a windows explorer style app ... change the right view base class to be clistview ... compile ... voila :cool: --- "every year we invent better idiot proof systems and every year they invent better idiots"

        B 1 Reply Last reply
        0
        • L l a u r e n

          make a new project ... choose an sdi app ... choose a windows explorer style app ... change the right view base class to be clistview ... compile ... voila :cool: --- "every year we invent better idiot proof systems and every year they invent better idiots"

          B Offline
          B Offline
          BLaZe
          wrote on last edited by
          #4

          Yes thank you but do you know where I can find Source or do you have a little BASIC program (exemple) for demonstrate how to change the ListView TIA BLaZe BLaZe ICQ # 110244345 email : mpblaze@iquebec.com

          L 1 Reply Last reply
          0
          • S Steve Driessens

            G'day, How about implementing a vertical splitter window and putting a tree control view in one pane and a list control view in the other? Then handle item selections in the tree and notifying the list view so that it's contents are synchronized with the tree. There may be a better way of handling this, but that's the best I can come up with for the moment. Hope this helps, Steve

            B Offline
            B Offline
            BLaZe
            wrote on last edited by
            #5

            Yes thank you but do you know where I can find Source or do you have a little BASIC program (exemple) for demonstrate this because I'm not very familiar with the Handle of a Tree :-) TIA BLaZe BLaZe ICQ # 110244345 email : mpblaze@iquebec.com

            1 Reply Last reply
            0
            • B BLaZe

              Yes thank you but do you know where I can find Source or do you have a little BASIC program (exemple) for demonstrate how to change the ListView TIA BLaZe BLaZe ICQ # 110244345 email : mpblaze@iquebec.com

              L Offline
              L Offline
              l a u r e n
              wrote on last edited by
              #6

              how to change the listview? you mean update it on an event? thats all in the docs and is very straightforward ... as for a basic example program with code ... thats what the app wizard gives you ... look thru the code it generates to at least see what is going on --- "every year we invent better idiot proof systems and every year they invent better idiots"

              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