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. Tree Item Position

Tree Item Position

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structurestutorial
3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    In my program I need to test if the Selected Item in a tree control is at the end of a root. I'm guessing that I can get the info out of an HTREEITEM but I dont konw how to get the info. How can I get it? Thanks in advance. -Raffi

    A 1 Reply Last reply
    0
    • L Lost User

      In my program I need to test if the Selected Item in a tree control is at the end of a root. I'm guessing that I can get the info out of an HTREEITEM but I dont konw how to get the info. How can I get it? Thanks in advance. -Raffi

      A Offline
      A Offline
      Alwin75
      wrote on last edited by
      #2

      Hi Raffi, Do you mean testing if an item is at the end of a branch ? In that case, you could simply test to see if it has any child items with GetChildItem(hItemSelected), which will return NULL if no children exist. Alwin

      L 1 Reply Last reply
      0
      • A Alwin75

        Hi Raffi, Do you mean testing if an item is at the end of a branch ? In that case, you could simply test to see if it has any child items with GetChildItem(hItemSelected), which will return NULL if no children exist. Alwin

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

        Thanks alot :) -Raffi

        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