OwnerDraw TabPage Icons

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

Hi all,

I have few OwnerDraw TabPage icons. The problem that
I am having now is that when another window go over the
icons, they don't redraw properly (meaning you either
cannot see the icon at all or the icon is drawn only half).

Does anyone know how to fix this?
Any suggestion/help will be greatly appreciated.
Thank you very much in advance.


regards,
Sean
 
Hi Sean,

You have overridden the Paint event of your TabPage control, have you?
Can you post the code inside it?

Michel
 
Hi Michel,

Thank you for your reply.
No, I haven't overriden the Paint event,
but I did handle the DrawItem event to draw the
rectangle part of the tabpages.

First I draw a gradient blue background and then
an icon on the rectangle part of the selected tabpage.
Even though the gradient blue background always gets
redrawn, the icon does not get redrawn all the time,
especially when I drag another window over it.

Do you have any idea why?
Thank you in advance.


regards,
Sean
 
Back
Top