CTabCtrl and Visual Styles

Visual Studio206
I have a tab control with some labels (static text) and edit boxes on my

dialog.

To enable Windows XP visual styles I included a common controls manifest in

my application, but I have the following problem:

When visual styles are enabled the tab control has brighter background than

normal dialog background color. But it seems that static text controls don't

know

about the tab control so they are displayed in a dark rectangle (standard

dialog

background color). I tried to set transparent style for static text

controls, but

that didn't change anything.



How can I correct this and make static text controls look as in property

sheets.

(Standard property sheets use same tab control, but they have no such

problems)



Thanks in advance.


-