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. Disabling the root node in a tree control in MFC

Disabling the root node in a tree control in MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++data-structureshelpquestion
3 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.
  • S Offline
    S Offline
    SanjaySMK
    wrote on last edited by
    #1

    Hi, I wanted to disable the root node in a tree control in MFC, have not been able to do so. Could anybody help? Thanks,

    Software Developer Sanjay Khapre

    L M 2 Replies Last reply
    0
    • S SanjaySMK

      Hi, I wanted to disable the root node in a tree control in MFC, have not been able to do so. Could anybody help? Thanks,

      Software Developer Sanjay Khapre

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      SanjaySMK wrote:

      I wanted to disable the root node in a tree control

      So when the user clicks on it they can't expand the tree to see the child nodes? Then what's the point of even having the Tree Control?

      led mike

      1 Reply Last reply
      0
      • S SanjaySMK

        Hi, I wanted to disable the root node in a tree control in MFC, have not been able to do so. Could anybody help? Thanks,

        Software Developer Sanjay Khapre

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        what about CWnd::EnableWindow ? or handle the mouse clicks to do nothing if the user clicks on the root ?

        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