Re: Background color on a tab page with XP theme
Point of interest. The new MFC Feature Pack contains a pretty cool property
sheet class that could be used if you want a Visual Studio looking property
sheet:
http://msdn.microsoft.com/en-us/library/bb982137.aspx
I didn't see any pictures of it on the MSDN site, but it looks like this
one:
http://www.bcgsoft.com/featuretour/tour103.htm
Tom
"Somebody" <somebody@cox.net> wrote in message
news:Tbj7k.2111$Fj5.1472@newsfe23.lga...
Why don't you use a property sheet? This is exactly what they are for, and
then you wouldn't have to mess around with all of this.
P.S. there is a bug in the tab control / property sheets where the pages
sometimes don't paint in themed mode correctly. The work around for that
issue is:
Try it on an XP box, if it comes out correctly, you are good.
If not, create a hidden static control on the page, and it should now
paint correctly.
"Timothy Dean" <my_email@this.com> wrote in message
news:e7rZw5y0IHA.1772@TK2MSFTNGP03.phx.gbl...
I have a dialog with a tab control on it. Tab pages are created from
dialog resources. When the tab control displays, the tabs are "white" and
the background of the tab pages is the COLOR_BTNFACE color. When I call
EnableThemeDialogTexture for the dialog page object, now the background of
the dialog appears to be "white" while the tab page has a white gradient
getting darker toward the bottom. This leaves an outline around where my
dialog resource is being displayed. How do I get the gradient to come out
right? Do I need to call DrawThemeBackground on the page? Thanks.
Timothy Dean