Force Windows Theme.

BlitzMax Forums/BlitzMax GUI Programming/Force Windows Theme.

Hi, I need to have the Windows Classic Theme on my application, I read something about an external file where you could change the theme but I can't seem to find anything about it now :S

So if you know how to do, Please speak out! :)

Thanks

Sorry for answering this late, I overlooked your topic the last days.

If you got an exe called "myapp.exe", then create a textfile called "myapp.exe.manifest" with the following content:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="My pretty Application"
type="win32"
/>
<description>now works with schemes</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>


Place this file in your app-dir and vóila ;)

I'm not really sure about things like "publicKeyToken" and if I have to alter them, but it works...

Jake

Does this also work under Windows Vista?

Try it. I refuse to install vista at home until forced to. But will get it at work in a few weeks...

I would, but I don't have Vista.

I'm only concerned of compatibility issues here.

CAN SOMEONE TEST IT PLEASE?!?

I refuse to install vista at home until forced to

Amen brother! ;)

Me too, but there're a lot of customers out there that do.

You can run, but you can't escape from Vista. :(

As a friend of mine tested it with Vista 32Bit.
No changes to the buttons were visible!

Try MSDN to find some answers on how to theme-enable Vista-Apps. Like said, when I got Vista at work I'll have a look at it.

Thanks for the replys! I forgot I even wrote this topic myself :P
The Manifest was the thing I was looking for, Thanks alot :)

You can use my wonderful BLIde Professional Publisher to enable Styles on XP and Vista without having to add any additional manifest file :D
If you're interested, you can give it a try on http://www.blide.org/nueva/addons.htm