Are OwnerDraw button supported in CSharp

  • Thread starter Thread starter anand
  • Start date Start date
A

anand

Hi All,

Are ownerdraw buttons supported in C# ?

I have an active X control which I would like to use in CSharp.

Buttons have a style BS_OWNERDRAW, and to do custom drawing you have
to handle WM_DRAWITEM message. It works greate in all languages except
CSharp and VB.net.

As soon as I change the style of the window (by chanding a property of
the Active X control) to BS_OWNERDRAW, it crashes with a NULL pointer
exception.

Any ideas?

Thanks in advance

Anand
 
Back
Top