Why does the OnPaint method not be invoked in TreeView

G

Guest

I create a class derived from TreeView and override the OnPaint method in
which I add some drawing act.
But when I run the program and find that the OnPaint method not be invoked
actually.

Why?????
 
H

Herfried K. Wagner [MVP]

Niciyou said:
I create a class derived from TreeView and override the OnPaint method in
which I add some drawing act.
But when I run the program and find that the OnPaint method not be invoked
actually.

Why?????

The TreeView control is not drawn by .NET, instead it's drawn by the Common
Controls library.
 

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

Top