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?