Does highlighting tab controls not work properly with XP visual styles?

I am trying to make a custom highlighter. I changed the color of a tab control using the GDI painting functions, but then (as expected) when the mouse is moved over it, the window will repaint.. What messages should be caught in the subclass proc to avoid this behavior? Just WM_MOUSEHOVER does not work. Or is there a better way to achieve this.