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. CTreeCtrl

CTreeCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
questioncom
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.
  • I Offline
    I Offline
    Ivan Cachicatari
    wrote on last edited by
    #1

    Hi guys, How can I change the Font for an individual item of a CTreeCtrl? Thanks in advance. Ivan Cachicatari Blog[^] www.latindevelopers.com

    R J 2 Replies Last reply
    0
    • I Ivan Cachicatari

      Hi guys, How can I change the Font for an individual item of a CTreeCtrl? Thanks in advance. Ivan Cachicatari Blog[^] www.latindevelopers.com

      R Offline
      R Offline
      RChin
      wrote on last edited by
      #2

      The easiest option would be to handle custom drawing. The mechanism is pretty straight forward. Take a look at the NM_CUSTOMDRAW message in the MSDN. I couldn't see any articles for tree controls, but this[^] article for List Controls got me first started.


      I Dream of Absolute Zero

      1 Reply Last reply
      0
      • I Ivan Cachicatari

        Hi guys, How can I change the Font for an individual item of a CTreeCtrl? Thanks in advance. Ivan Cachicatari Blog[^] www.latindevelopers.com

        J Offline
        J Offline
        Jack Puppy
        wrote on last edited by
        #3

        SetItemState(hItem, TVIS_BOLD, TVIS_BOLD); Bernie (Boom Boom) Geoffrion worked Atlanta Flames games in the 1970s with the splendid Jiggs McDonald. One night, Geoffrion said, "Jiggs, there are only three things to hockey: shooting and skating." McDonald said, "Right, Boomer. And what's the third?" The exasperated Geoffrion replied," Jiggs, that's the three. Shooting. And. Skating."

        I 1 Reply Last reply
        0
        • J Jack Puppy

          SetItemState(hItem, TVIS_BOLD, TVIS_BOLD); Bernie (Boom Boom) Geoffrion worked Atlanta Flames games in the 1970s with the splendid Jiggs McDonald. One night, Geoffrion said, "Jiggs, there are only three things to hockey: shooting and skating." McDonald said, "Right, Boomer. And what's the third?" The exasperated Geoffrion replied," Jiggs, that's the three. Shooting. And. Skating."

          I Offline
          I Offline
          Ivan Cachicatari
          wrote on last edited by
          #4

          Thanks! Works fine. Ivan Cachicatari Blog[^] www.latindevelopers.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