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. treeview check box color ?

treeview check box color ?

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

    Greetings... I have custom draw treeview control. I am able to change the default color of the treeview by using the following code : case NM_CUSTOMDRAW : case CDDS_CUSTOMDRAW: return CDDS_ITEMPAINT: case CDDS_ITEMPAINT: /* changing the color of the text here */ How can I trap the drawing of the checkbox so that i can chage the color in which the check box is drawn ? Please help... Ritesh

    S 1 Reply Last reply
    0
    • I insanely420

      Greetings... I have custom draw treeview control. I am able to change the default color of the treeview by using the following code : case NM_CUSTOMDRAW : case CDDS_CUSTOMDRAW: return CDDS_ITEMPAINT: case CDDS_ITEMPAINT: /* changing the color of the text here */ How can I trap the drawing of the checkbox so that i can chage the color in which the check box is drawn ? Please help... Ritesh

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      insanely420 wrote: How can I trap the drawing of the checkbox so that i can chage the color in which the check box is drawn ? Why bother? Just draw some nice looking checkbox icons or bitmaps & put them in the tree's state item image list (TVSIL_STATE). That's where the default ones come from :)

      Shog9  --

      Maybe Java is kind of like God, it "works in mysterious ways". It seems like your apps are running slowly, because in the backgroud Java is solving world hunger, or finding the cure to cancer. - Ryan Johnston, Don't die java!

      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