XP Themes
-
Question #1: How can I create a list of Themes installed in Windows XP? (Similar to the list which appears in Display Properties > Themes). Question #2: How can I programatically switch between, or apply, a theme to the system? (Without using ShellExecute to bring up Display Properties). Is there an API for accomplishing these tasks? If not, any ideas of how to do it anyway? I'm using Visual C++ 6 (or Visual C++ .NET). Thanks in advance!
-
Question #1: How can I create a list of Themes installed in Windows XP? (Similar to the list which appears in Display Properties > Themes). Question #2: How can I programatically switch between, or apply, a theme to the system? (Without using ShellExecute to bring up Display Properties). Is there an API for accomplishing these tasks? If not, any ideas of how to do it anyway? I'm using Visual C++ 6 (or Visual C++ .NET). Thanks in advance!
Larry Antram wrote: Question #1: How can I create a list of Themes installed in Windows XP? (Similar to the list which appears in Display Properties > Themes). After searching MSDN (with no luck) and poking through the Registry on my machine, I've come to the conclusion that to build the list involves doing a FindFirst/FindNext on [Windows]\Resources\Themes\*.msstyles, and perhaps loading a friendly name (string resource) out of each DLL? Am I correct in this assumption? Larry Antram wrote: Question #2: How can I programatically switch between, or apply, a theme to the system? (Without using ShellExecute to bring up Display Properties). I still need help with this one. I know I can use ShellExecute on a .msstyles file to bring up Display Properties, which will allow the user to apply the Theme -- however there has to be another (automatic) way. Any ideas?