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
 

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