CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2021
    Posts
    10

    CTreeCtrl use custom Scrollbar

    Hi gurus,

    I have a subclassed CTreeCtrl class and I make a custom color skin for it. I also subclassed CScrollbar class and make a custom skin for it. Now I want to force MyCustomTreeCtrl class to use MyCustomScrollbar. I don't know if there is an easy way to do so.

    Thx in advance.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,317

    Re: CTreeCtrl use custom Scrollbar

    It seems to me the tree control draws its scrolbars itself. So I have no idea how you could implement your custom scrollbars.
    I guess you should try to implement a custom or owner draw in your tree control.
    Or you could try the technique described here.
    Victor Nijegorodov

Tags for this Thread

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