Hello everyone:
I was successfully using EnableThemeDialogTexture API to enable XP theme in a tab control dialog box for a custom made Property Sheet until the time when I had to add a dynamically created static control to it. This static control is created from the WM_INITDIALOG message handler by CreateWindowEx. Unfortunately it does not have XP theme enabled for it even if EnableThemeDialogTexture is called after its creation.
Here's how this control looks like if I try to display an icon in it:
As you can see it still has an old background.
Does anyone know how to enable XP visual themes for dialog box controls created dynamically at a run time?
I was successfully using EnableThemeDialogTexture API to enable XP theme in a tab control dialog box for a custom made Property Sheet until the time when I had to add a dynamically created static control to it. This static control is created from the WM_INITDIALOG message handler by CreateWindowEx. Unfortunately it does not have XP theme enabled for it even if EnableThemeDialogTexture is called after its creation.
Here's how this control looks like if I try to display an icon in it:
As you can see it still has an old background.
Does anyone know how to enable XP visual themes for dialog box controls created dynamically at a run time?