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

CTreeCtrl question

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestion
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.
  • Z Offline
    Z Offline
    zeus_master
    wrote on last edited by
    #1

    a treectrl such as: [-]Root1 | |_Lay1Item1 | |_Lay1Item2 | [-]Lay1Item3 | |_Lay2Item1 | |_BB +Root2 1>.how to get the item handle by its name/string? 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2

    H A 2 Replies Last reply
    0
    • Z zeus_master

      a treectrl such as: [-]Root1 | |_Lay1Item1 | |_Lay1Item2 | [-]Lay1Item3 | |_Lay2Item1 | |_BB +Root2 1>.how to get the item handle by its name/string? 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2

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

      (1>.) See GetNextItem(...);_**


      **_

      whitesky


      1 Reply Last reply
      0
      • Z zeus_master

        a treectrl such as: [-]Root1 | |_Lay1Item1 | |_Lay1Item2 | [-]Lay1Item3 | |_Lay2Item1 | |_BB +Root2 1>.how to get the item handle by its name/string? 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2

        A Offline
        A Offline
        Abhi Lahare
        wrote on last edited by
        #3

        1>.how to get the item handle by its name/string? ->I guess you cannot, what if two nodes having same name? Instead try using GetItem and GetNextitem function. 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2 -> SetItemData may help. Regards Abhishake Lahare

        Z 1 Reply Last reply
        0
        • A Abhi Lahare

          1>.how to get the item handle by its name/string? ->I guess you cannot, what if two nodes having same name? Instead try using GetItem and GetNextitem function. 2>.how to know the item stay at which lay? for example: Lay1Item1 stay at lay 1, root is 0,BB is lay 2 -> SetItemData may help. Regards Abhishake Lahare

          Z Offline
          Z Offline
          zeus_master
          wrote on last edited by
          #4

          thank you for your quick reply. about 2> in fact, I'v used SetItemData for manage the handle of MDI docs..... what I want is: aplly different doc template for different lay of item related Doc

          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