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

    Adding a BackgroundImage to a TreeView

    Hi,

    I am trying to add a BackgroundImage to a TreeView. It looks like the only way this will work is to Inherit from TreeView and override OnPaintBackground(System.Windows.Forms.PaintEventArgs pevent). If I do this it works, but the nodes don't get drawn. Even though the code that sets the StateImageIndex is getting executed. I assume that I must do all the node drawing myself as well? Does anyone have an example they can show me?

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,274

    Re: Adding a BackgroundImage to a TreeView

    Could you show us your code?
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

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