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 Ctrl Object Selection

Tree Ctrl Object Selection

Scheduled Pinned Locked Moved C / C++ / MFC
data-structures
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.
  • R Offline
    R Offline
    raajpatel
    wrote on last edited by
    #1

    created a Dialog base Application with Tree control..Now i had Selected some leaf item from my tree control ,And after that click on to open any dialog then the Tree Leaf unselected. Now i want tree item should be selected after closing the dialog.

    L 1 Reply Last reply
    0
    • R raajpatel

      created a Dialog base Application with Tree control..Now i had Selected some leaf item from my tree control ,And after that click on to open any dialog then the Tree Leaf unselected. Now i want tree item should be selected after closing the dialog.

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

      The selected item should remain selected after the second dialog terminates.

      R 1 Reply Last reply
      0
      • L Lost User

        The selected item should remain selected after the second dialog terminates.

        R Offline
        R Offline
        raajpatel
        wrote on last edited by
        #3

        Thanks you so much for reply... Now I tell u full story. when i drag the item into grid it also add into TreeView.Now suppose there are 3/4 item into editor and u select one the parallely tree item will also select.so now this time both the thing are selected but as u will click some where else like open an dialogbox and close it then tree item will be selected but partially it`s colour will be Gray..now my problem is that Gary colour. I need it Fully selected Item. Please tell me what to do...

        P 1 Reply Last reply
        0
        • R raajpatel

          Thanks you so much for reply... Now I tell u full story. when i drag the item into grid it also add into TreeView.Now suppose there are 3/4 item into editor and u select one the parallely tree item will also select.so now this time both the thing are selected but as u will click some where else like open an dialogbox and close it then tree item will be selected but partially it`s colour will be Gray..now my problem is that Gary colour. I need it Fully selected Item. Please tell me what to do...

          P Offline
          P Offline
          Peter_in_2780
          wrote on last edited by
          #4

          If you want your item to be highlighted (blue) it must not only be selected, but the containing control must have the focus. Read up on "set focus".

          Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

          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