>Hi Naomi.
>I checked the thread that you suggest and have three questions... :)
>1- It seems that is possible to pass the theme that you want to apply. How can I get a list of avaiable themes?
>2- Themes like Office 2003, Office XP is avaiable in this dll?
>3- There is a way to apply a theme only for a control instead of the whole form?
I'm afraid I can not answer these questions. I recalled there was a thread on the similar topic, so this was the thread I found... You may check a StatusBarClass from Downloads section here, it may already have this code.
Hmmm, I could not find this file in Downloads anymore :(
But may be this thread
Re: Updated ctl32_statusbar class in Downloads Thread #
1116978 Message #
1117102 would help.
Here is from Carlos page:
UPDATE 2006-05-07
I have been strugling to provide support for dealing with _Screen.Themes, Thisform.Themes, and theme switching at the Windows level. It took more time to deal with these issues than to program the whole thing in the first place. I think I finally got it right. You can now set the Themes property of the statusbar, change Thisform.Themes, change _Screen.Themes, or change themes in Windows Display Properties, and everything will look like its supossed to.
I gave up for now on trying to deal with SYS(2700,0) and SYS(2700,1). There is no way to detect the status of that switch, since SYS(2700) returns 1 if a theme is enabled in Windows. I have also seen strange interactions when doing SYS(2700,0/1) and _Screen.Themes .T./.F. many times.
I have also noticed strange interactions between the monitor screen and my eyes after switching themes more than one million times...
I have done some mayor overhauling and moved around things quite a bit, but just the internal workings, so everything is a little more organized and understandable.
If it's not broken, fix it until it is.
My Blog