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. How to make visible the inserted item in Tree control?

How to make visible the inserted item in Tree control?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestiondata-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.
  • S Offline
    S Offline
    swamy Narasimha
    wrote on last edited by
    #1

    Hi all, i'm trying to isert a new item to the tree control when i click on a button.It's working fine if i'm inserting the new item as a child to the another item which is already having child items,but when i try to add the new item to a leaf item (leaf item as parent to the new item)new item is inserted but not visible. How can i come out from this problem.Any one please help me . Thanks in advance.

    G 1 Reply Last reply
    0
    • S swamy Narasimha

      Hi all, i'm trying to isert a new item to the tree control when i click on a button.It's working fine if i'm inserting the new item as a child to the another item which is already having child items,but when i try to add the new item to a leaf item (leaf item as parent to the new item)new item is inserted but not visible. How can i come out from this problem.Any one please help me . Thanks in advance.

      G Offline
      G Offline
      GuyM
      wrote on last edited by
      #2

      Try calling - YourTreeCtrl.Expand(hParent, TVE_EXPAND) where "hParent" is the leaf which is now the parent of the new item

      S 1 Reply Last reply
      0
      • G GuyM

        Try calling - YourTreeCtrl.Expand(hParent, TVE_EXPAND) where "hParent" is the leaf which is now the parent of the new item

        S Offline
        S Offline
        swamy Narasimha
        wrote on last edited by
        #3

        Thank you for your reply Mr GuyM I already tried in this manner but the item was not visible .Any alternative to this .

        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