Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XP Theme in Property Sheet for dynamic control

Status
Not open for further replies.

dc2000

Programmer
Jun 7, 2005
48
0
0
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top