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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multiple selection in Tree control(Non MFC)

Multiple selection in Tree control(Non MFC)

Scheduled Pinned Locked Moved C / C++ / MFC
c++phpcomdata-structurestutorial
7 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.
  • R Offline
    R Offline
    Ram Shelke
    wrote on last edited by
    #1

    Hi, can anyone please tell me how to select the multiple items in the tree control using Non MFC code i searched on google i got the following but it is used with MFC i want it in Win32, if anyone have idea about this please reply http://www.codeguru.com/cpp/controls/treeview/misc-advanced/article.php/c629/A-multiselect-tree-control-class.htm :confused: thanks

    L C 2 Replies Last reply
    0
    • R Ram Shelke

      Hi, can anyone please tell me how to select the multiple items in the tree control using Non MFC code i searched on google i got the following but it is used with MFC i want it in Win32, if anyone have idea about this please reply http://www.codeguru.com/cpp/controls/treeview/misc-advanced/article.php/c629/A-multiselect-tree-control-class.htm :confused: thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      According to the documentation[^] mult-select is not supported. You would probably need to use subclassing[^] to achieve this.

      One of these days I'm going to think of a really clever signature.

      R 1 Reply Last reply
      0
      • L Lost User

        According to the documentation[^] mult-select is not supported. You would probably need to use subclassing[^] to achieve this.

        One of these days I'm going to think of a really clever signature.

        R Offline
        R Offline
        Ram Shelke
        wrote on last edited by
        #3

        but i am using win32, how to do this? is do u have an idea.

        L 1 Reply Last reply
        0
        • R Ram Shelke

          but i am using win32, how to do this? is do u have an idea.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Ram Shelke wrote:

          do u have an idea.

          Yes, and I gave it to you in my previous answer. You need to subclass the control and add your own code to make multi-select work.

          One of these days I'm going to think of a really clever signature.

          1 Reply Last reply
          0
          • R Ram Shelke

            Hi, can anyone please tell me how to select the multiple items in the tree control using Non MFC code i searched on google i got the following but it is used with MFC i want it in Win32, if anyone have idea about this please reply http://www.codeguru.com/cpp/controls/treeview/misc-advanced/article.php/c629/A-multiselect-tree-control-class.htm :confused: thanks

            C Offline
            C Offline
            Chris Meech
            wrote on last edited by
            #5

            As Richard has pointed out, there is no support for multi selection for a tree control, so it is something that has to be added on your own. However from his link to the documentation, there is another link to an article that suggest with Windows Vista and onward, there is support for multi selection on a tree control. Check out this link and see if it helps you to get started. Windows Vista Control Enhancements[^] :)

            Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

            L 1 Reply Last reply
            0
            • C Chris Meech

              As Richard has pointed out, there is no support for multi selection for a tree control, so it is something that has to be added on your own. However from his link to the documentation, there is another link to an article that suggest with Windows Vista and onward, there is support for multi selection on a tree control. Check out this link and see if it helps you to get started. Windows Vista Control Enhancements[^] :)

              Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Interesting that the article was written in 2007, and yet the link I found claims to be current as of 2012. :confused:

              One of these days I'm going to think of a really clever signature.

              C 1 Reply Last reply
              0
              • L Lost User

                Interesting that the article was written in 2007, and yet the link I found claims to be current as of 2012. :confused:

                One of these days I'm going to think of a really clever signature.

                C Offline
                C Offline
                Chris Meech
                wrote on last edited by
                #7

                That documentation was rated down and that might be part of the reason. Though there is no mention if the Vista control enhancements ever made it back into the main stream, like Win 7 or 8. :)

                Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

                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