question

luokairen-6659 avatar image
0 Votes"
luokairen-6659 asked SongZhu-MSFT commented

how to disable theme for a deskband's child control just like the windows address deskband?

hi, windows 7, i'm creating a search box in the taskbar using the IDeskband interface, just like
93035-2.png,
but when i change the system theme, like Aero, my search box's color changed, the background color and the text in the edit control, just like
93027-1.png


this is not what i want. can anyone tell how to make it just like the first whatever the theme is?


windows-apic++
2.png (13.0 KiB)
1.png (15.2 KiB)
2.png (13.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SongZhu-MSFT avatar image
0 Votes"
SongZhu-MSFT answered SongZhu-MSFT commented

I think you need to refer to: Enabling Visual Styles and SetWindowTheme



· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

thanks, i have tried this, but it did't work

0 Votes 0 ·

According to Microsoft, deskbands are not recommended for Windows 7. Maybe you can try to use the IDeskBand2 interface. Also you can refer to this thread.


0 Votes 0 ·

hi, i'm using the official deskbandsdksample, added a child edit box, when the aero theme is enabled, the text in the edit box is tranparent, and its color is changed, i want it black whatever the current theme is, does it possiable?

0 Votes 0 ·