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

CTreeCtrl problems...

Scheduled Pinned Locked Moved C / C++ / MFC
questiondata-structures
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.
  • G Offline
    G Offline
    Greven
    wrote on last edited by
    #1

    How can I get an existing CTreeCtrl to display the +- box to the left of the name? The reason I say existing is that I placed it on the form for the dialog box, and didn't explicitly call create. How do I modify the settings of it? Also, I attached a image list to the tree, but I can't get them to have transparent edges (around the image). I've tried attaching a mask, but it just won't do it. Obviously I am doing things I've never had to do before :) This tree thing is driving me nuts... Programming in binary is as easy as 01 10 11.

    N 1 Reply Last reply
    0
    • G Greven

      How can I get an existing CTreeCtrl to display the +- box to the left of the name? The reason I say existing is that I placed it on the form for the dialog box, and didn't explicitly call create. How do I modify the settings of it? Also, I attached a image list to the tree, but I can't get them to have transparent edges (around the image). I've tried attaching a mask, but it just won't do it. Obviously I am doing things I've never had to do before :) This tree thing is driving me nuts... Programming in binary is as easy as 01 10 11.

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      TVS_HASBUTTONS and just to make it look better add TVS_HASLINES and also TVS_LINESATROOT Nish Bow wow wow, Yippee yo yippee yay, My miniputt high, Is now 30 yay.

      G 1 Reply Last reply
      0
      • N Nish Nishant

        TVS_HASBUTTONS and just to make it look better add TVS_HASLINES and also TVS_LINESATROOT Nish Bow wow wow, Yippee yo yippee yay, My miniputt high, Is now 30 yay.

        G Offline
        G Offline
        Greven
        wrote on last edited by
        #3

        You are my hero for the day. I have been playing with this thing for hours :) What about the images though? I have them in a CImageList, and I've tried using the GetImageInfo and adding a mask to IMAGEINFO::hbmMask variable, but it doesn't seem to do anything... Right now I've made my tree background black and my text white so I don't have to look at the black boarder around the images :) And I just don't want to keep it that way... Programming in binary is as easy as 01 10 11.

        G 1 Reply Last reply
        0
        • G Greven

          You are my hero for the day. I have been playing with this thing for hours :) What about the images though? I have them in a CImageList, and I've tried using the GetImageInfo and adding a mask to IMAGEINFO::hbmMask variable, but it doesn't seem to do anything... Right now I've made my tree background black and my text white so I don't have to look at the black boarder around the images :) And I just don't want to keep it that way... Programming in binary is as easy as 01 10 11.

          G Offline
          G Offline
          Greven
          wrote on last edited by
          #4

          Never mind, I just solved my own problem :) Actually, I solved it by reading a different post on a different problem! But it used a CImageList in there, and it works!!!!!!!!! (I'm happy) Programming in binary is as easy as 01 10 11.

          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