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. About MFC Tree Control

About MFC Tree Control

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

    Hello~ I make a program about tree control. I want to muli-select of my tree control items. When I get an item name, how could I highlight the item on tree control. I have no ideal about these two problems. Can anyone give me a hand please? Thanks a lot.:)

    N 1 Reply Last reply
    0
    • Q qweas

      Hello~ I make a program about tree control. I want to muli-select of my tree control items. When I get an item name, how could I highlight the item on tree control. I have no ideal about these two problems. Can anyone give me a hand please? Thanks a lot.:)

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      CTreeCtrl doesn't handle multiple selections. Have a look at CTreeCtrlEx at http://www.techsoft.no/bendik/[^] I use this in some parts of ED (see sig) as well as my own custom tree control (see the ED ClassView). Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com

      Q 1 Reply Last reply
      0
      • N Neville Franks

        CTreeCtrl doesn't handle multiple selections. Have a look at CTreeCtrlEx at http://www.techsoft.no/bendik/[^] I use this in some parts of ED (see sig) as well as my own custom tree control (see the ED ClassView). Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com

        Q Offline
        Q Offline
        qweas
        wrote on last edited by
        #3

        Thanks for your help. Does anyone do me a favor for my question2: When I get an item name, how could I highlight the item on tree control. I had tried SetCheck function. But it could not hightlight the item what I give.

        N 1 Reply Last reply
        0
        • Q qweas

          Thanks for your help. Does anyone do me a favor for my question2: When I get an item name, how could I highlight the item on tree control. I had tried SetCheck function. But it could not hightlight the item what I give.

          N Offline
          N Offline
          Neville Franks
          wrote on last edited by
          #4

          qweas wrote: I had tried SetCheck function. But it could not hightlight the item what I give. You need to "select" the item: CTreeCtrl::Select(HTREEITEM hItem, UINT nCode) eg. Select( hItem, TVGN_CARET ); See the CTreeCtrl documentation. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com

          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