Double Buffering in ListBox with OwnerDraw doesn't work?

  • Thread starter Thread starter SirThanxALot
  • Start date Start date
S

SirThanxALot

Dear all,

This is the situation:
I have a custom subclass of ListBox
- OnDrawItem overriden
- OnSelectedIndexChanged overriden
- DrawMode.OwnerDrawFixed (same issue with OwnerDrawVariable)
However, when I activate double buffering with
SetStyle(COntrolStyles.AllPaintingInWmPaint|ControlStyles.UserPaint|ControlStyles.DoubleBuffer,true)
The items are not drawn on the screen, but they seem to be there. If I click on them
the Item is displayed correctly.

Any hints on double buffering in ListBox components?

kind regards,
SrTnxALt
 

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