C# Owner drawn text tree view misses the horizontal scrollbar.

  • Thread starter Thread starter Staz003
  • Start date Start date
S

Staz003

Hey guys,

So here i've got this treeview that i owner draw the text, mainly to
put it over 2 lines and put some additionnal icons in there, my problem
is the side scrolling.

You see when you create a node and don't give it a text, it has a width
of like, 7px, and what I draw is a lot wider than that, so i need a way
to tell the node what size it have...

A treenode have a .Bounds proptyer that is readonly, i can't even set
the width says : "Bounds is not a variable"... so i've searched
everywhere and didn't found how to do that, someone told me that i may
have to send a message to the native peer but i have no single idea
what that means.

So thank you very much in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top