tags:

views:

39

answers:

1

Is there a way for windows created with WS_CHILD to inherit the parent's background color rather than default to Dialog Color? I'm trying to do this for a tab control, mainly the part that extends due to the tabs not filling up the area. I want this color to be the parent window's BG.

Thanks

+1  A: 

For the "content" of the tab, you would call EnableThemeDialogTexture (Visual Styles can have complex tab content backgrounds), for the area to the right of the actual tabs I think you might have to owner draw (TCS_OWNERDRAWFIXED style) unless just using the TCS_RIGHTJUSTIFY style is enough.

Anders