From: Steve on
This question relates to when you are using XP visual styles:

Tab controls can have a gradient or textured effect to them. If I place
a child dialog on top of the tab control, it covers this effect leaving
the flat colour of the dialog box. How do I make the child dialog
transparent?
From: James Brown on
"Steve" <me(a)home.com> wrote in message
news:452f6485$0$8711$ed2619ec(a)ptn-nntp-reader02.plus.net...
> This question relates to when you are using XP visual styles:
>
> Tab controls can have a gradient or textured effect to them. If I place a
> child dialog on top of the tab control, it covers this effect leaving the
> flat colour of the dialog box. How do I make the child dialog transparent?

Don't make the dialog a child of the tab-control - make it a child of the
containing dialog.

--
James Brown
Microsoft MVP - Windows SDK
www.catch22.net
Free Win32 Tutorials and Sourcecode





From: Steve on
James Brown wrote:
> "Steve" <me(a)home.com> wrote in message
> news:452f6485$0$8711$ed2619ec(a)ptn-nntp-reader02.plus.net...
>> This question relates to when you are using XP visual styles:
>>
>> Tab controls can have a gradient or textured effect to them. If I place a
>> child dialog on top of the tab control, it covers this effect leaving the
>> flat colour of the dialog box. How do I make the child dialog transparent?
>
> Don't make the dialog a child of the tab-control - make it a child of the
> containing dialog.
>

I am. It's only being 'placed' on top of the tab control.
From: James Brown on

"Steve" <me(a)home.com> wrote in message
news:452fd9ee$0$8754$ed2619ec(a)ptn-nntp-reader02.plus.net...
> James Brown wrote:
>> "Steve" <me(a)home.com> wrote in message
>> news:452f6485$0$8711$ed2619ec(a)ptn-nntp-reader02.plus.net...
>>> This question relates to when you are using XP visual styles:
>>>
>>> Tab controls can have a gradient or textured effect to them. If I place
>>> a child dialog on top of the tab control, it covers this effect leaving
>>> the flat colour of the dialog box. How do I make the child dialog
>>> transparent?
>>
>> Don't make the dialog a child of the tab-control - make it a child of the
>> containing dialog.
>>
>
> I am. It's only being 'placed' on top of the tab control.

It just occurred to me that you also need the EnableThemeDialogTexture API

--
James Brown
Microsoft MVP - Windows SDK
www.catch22.net
Free Win32 Tutorials and Sourcecode




From: Steve on
James Brown wrote:
> "Steve" <me(a)home.com> wrote in message
> news:452fd9ee$0$8754$ed2619ec(a)ptn-nntp-reader02.plus.net...
>> James Brown wrote:
>>> "Steve" <me(a)home.com> wrote in message
>>> news:452f6485$0$8711$ed2619ec(a)ptn-nntp-reader02.plus.net...
>>>> This question relates to when you are using XP visual styles:
>>>>
>>>> Tab controls can have a gradient or textured effect to them. If I place
>>>> a child dialog on top of the tab control, it covers this effect leaving
>>>> the flat colour of the dialog box. How do I make the child dialog
>>>> transparent?
>>> Don't make the dialog a child of the tab-control - make it a child of the
>>> containing dialog.
>>>
>> I am. It's only being 'placed' on top of the tab control.
>
> It just occurred to me that you also need the EnableThemeDialogTexture API
>
Yep, that's it. I wasn't aware of that API. Thanks very much.