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. select item using path

select item using path

Scheduled Pinned Locked Moved C / C++ / MFC
data-structurestutorial
4 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.
  • Y Offline
    Y Offline
    yuvachandra
    wrote on last edited by
    #1

    hi, How to select a item in a tree control if i know path of that particular item.

    P 1 Reply Last reply
    0
    • Y yuvachandra

      hi, How to select a item in a tree control if i know path of that particular item.

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      yuvachandra wrote:

      i know path of that particular item

      Whats does this mean ? Is it text displayed ? You need to traverse tree control items inorder to go to particlular node and select it.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      Y 1 Reply Last reply
      0
      • P prasad_som

        yuvachandra wrote:

        i know path of that particular item

        Whats does this mean ? Is it text displayed ? You need to traverse tree control items inorder to go to particlular node and select it.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        Y Offline
        Y Offline
        yuvachandra
        wrote on last edited by
        #3

        i have a path D:\New\NewFolder.Now i have to select the item which contains the text NewFolder.How can i do it.

        T 1 Reply Last reply
        0
        • Y yuvachandra

          i have a path D:\New\NewFolder.Now i have to select the item which contains the text NewFolder.How can i do it.

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

          yuvachandra wrote:

          i have a path D:\New\NewFolder.Now i have to select the item which contains the text NewFolder.How can i do it.

          I am assuming D: is root Node and you first have to find New Under it using GetChildItem and GetNextItem and comparing the text with New, after you find Text New, GetChildItem and GetNextItem to Find NewFolder, using TreeHandle you got from search use SelectItem select that item

          "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