CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    5

    How can I see each item in different color in CTreeView?

    I would like to show each item in different color in CTreeView.
    The SetTextColor is shown in same color on all items.
    How can I to do this?

    Help me!!



  2. #2
    Guest

    Re: How can I see each item in different color in CTreeView?

    To change the color/font/style of individual TreeCtrl items, you are going to have to create an "Owner Drawn" version. An owner-drawn tree control leaves it up to the application code (yours) to actually draw the image/text/label; since you are drawing it, you can then do whatever you want to it's appearance. You should be able to find an example of an owner-drawn tree control here at CodeGuru.

    Cheers!
    Humble Programmer
    ,,,^..^,,,


  3. #3
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: How can I see each item in different color in CTreeView?

    There is a good example at codeguru (category CTreeView)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured