Why does the OnPaint method not be invoked in TreeView

  • Thread starter Thread starter Guest
  • Start date Start date
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?????
 
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.
 
Back
Top