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. TreeCtrl Pointer

TreeCtrl Pointer

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structures
5 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.
  • S Offline
    S Offline
    Star09
    wrote on last edited by
    #1

    Hello, Through the program I want to access different tree items, what is the pointer or how can I declare a pointer to access these items in the tree? Thank you. --Star

    L M 2 Replies Last reply
    0
    • S Star09

      Hello, Through the program I want to access different tree items, what is the pointer or how can I declare a pointer to access these items in the tree? Thank you. --Star

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Star08 wrote:

      what is the pointer or how can I declare a pointer to access these items in the tree?

      How did you create the tree?

      led mike

      S 1 Reply Last reply
      0
      • L led mike

        Star08 wrote:

        what is the pointer or how can I declare a pointer to access these items in the tree?

        How did you create the tree?

        led mike

        S Offline
        S Offline
        Star09
        wrote on last edited by
        #3

        linklist, but I'm trying to display it using Tree Control. So far, I can display the root and its children. But when I try to post the grandchildren, they are posted as the root's children. --Star -- modified at 16:27 Saturday 19th May, 2007

        1 Reply Last reply
        0
        • S Star09

          Hello, Through the program I want to access different tree items, what is the pointer or how can I declare a pointer to access these items in the tree? Thank you. --Star

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Items in a treeview control are identified by a handle (HTREEITEM type). You can navigate the tree (item handle) heirarchy with TVM_GETNEXTITEM. You can get an items information with TVM_GETITEM. Instead of a pointer to an item, you'll probably want to work with a HTREEITEM handle. Mark

          "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

          S 1 Reply Last reply
          0
          • M Mark Salsbery

            Items in a treeview control are identified by a handle (HTREEITEM type). You can navigate the tree (item handle) heirarchy with TVM_GETNEXTITEM. You can get an items information with TVM_GETITEM. Instead of a pointer to an item, you'll probably want to work with a HTREEITEM handle. Mark

            "Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

            S Offline
            S Offline
            Star09
            wrote on last edited by
            #5

            Thank you :) --Star

            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