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. Different fonts in CTreeView

Different fonts in CTreeView

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • B Offline
    B Offline
    bilas
    wrote on last edited by
    #1

    Is it possible? Can I set different fonts (size, font-family) in CTreeView? Thanks in advance, bilas

    M 1 Reply Last reply
    0
    • B bilas

      Is it possible? Can I set different fonts (size, font-family) in CTreeView? Thanks in advance, bilas

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      You can use custom draw[^] to draw the items in a tree view in any way you want. Stability. What an interesting concept. -- Chris Maunder

      B 2 Replies Last reply
      0
      • M Mike Dimmick

        You can use custom draw[^] to draw the items in a tree view in any way you want. Stability. What an interesting concept. -- Chris Maunder

        B Offline
        B Offline
        bilas
        wrote on last edited by
        #3

        Thank you, Mike. I'll try it right now. I'm not advanced in programming, but I trying..

        1 Reply Last reply
        0
        • M Mike Dimmick

          You can use custom draw[^] to draw the items in a tree view in any way you want. Stability. What an interesting concept. -- Chris Maunder

          B Offline
          B Offline
          bilas
          wrote on last edited by
          #4

          Hi, Mike. Thanks a lot for yor help. I've just tried to understand the project, that you had told about. I downloaded code (custdtv.exe). But it's not easy enough for me to got it. I couldn't understood the next function enough: long handleCustomDraw(HWND hWndTreeView, LPNMTVCUSTOMDRAW pNMTVCD); Can you help me with more simple example. I need an example, that may set different fonts in my CTreeView. My regards, bilas.

          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