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. changing the color of the previous selected node of CtreeCtrl

changing the color of the previous selected node of CtreeCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 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
    SVPG
    wrote on last edited by
    #1

    I have a CTreeCtrl, I need to change the color of the node that was previously selected. How do I do this. Also I can get the previous node to be bold, but then how do I reset the same when I click on some other node.?

    R 1 Reply Last reply
    0
    • S SVPG

      I have a CTreeCtrl, I need to change the color of the node that was previously selected. How do I do this. Also I can get the previous node to be bold, but then how do I reset the same when I click on some other node.?

      R Offline
      R Offline
      Rory Solley
      wrote on last edited by
      #2

      Look into the MSDN documentation for the NM_CUSTOMDRAW message. That allows you to manipulate the visual appearance of the tree control without having to resort to full-blown owner-drawn implementations. Michael Dunn has done some nice articles on the subject elsewhere at CG - I suggest you search for them. HTH

      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