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. CTreeCtrl

CTreeCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++databasedata-structures
5 Posts 5 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
    mosali satish
    wrote on last edited by
    #1

    hello everyone, I have a small problem in VC++.i want to get the index value for the tree item of a tree control.i have used the class CTreeCtrl class but i couldn't find any method which returns the index value. so quickly help me with a solution

    sathish

    H M G T 4 Replies Last reply
    0
    • M mosali satish

      hello everyone, I have a small problem in VC++.i want to get the index value for the tree item of a tree control.i have used the class CTreeCtrl class but i couldn't find any method which returns the index value. so quickly help me with a solution

      sathish

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      See CTreeCtrl::GetSelectedItem

      _**


      **_

      WhiteSky


      1 Reply Last reply
      0
      • M mosali satish

        hello everyone, I have a small problem in VC++.i want to get the index value for the tree item of a tree control.i have used the class CTreeCtrl class but i couldn't find any method which returns the index value. so quickly help me with a solution

        sathish

        M Offline
        M Offline
        mails2dhana
        wrote on last edited by
        #3

        I think there is no functions are avaliable for that. You should iterate your tree items with GetNextItem() method. Just try...

        1 Reply Last reply
        0
        • M mosali satish

          hello everyone, I have a small problem in VC++.i want to get the index value for the tree item of a tree control.i have used the class CTreeCtrl class but i couldn't find any method which returns the index value. so quickly help me with a solution

          sathish

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          A tree control item doesn't have an index, since the tree doesn't represent a simple linear list. Each item in the tree has a handle. Using that handle, there are methods provided by the CTreeCtrl that you can use to change the item itself, get the child items, and so on.


          Software Zen: delete this;

          Fold With Us![^]

          1 Reply Last reply
          0
          • M mosali satish

            hello everyone, I have a small problem in VC++.i want to get the index value for the tree item of a tree control.i have used the class CTreeCtrl class but i couldn't find any method which returns the index value. so quickly help me with a solution

            sathish

            T Offline
            T Offline
            ThatsAlok
            wrote on last edited by
            #5

            GetChildItem and related SiblingsApi

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

            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