Force Windows Theme.

BlitzMax Forums/MaxGUI Module/Force Windows Theme.

Thareh(Posted 2007) [#1]
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


Jake L.(Posted 2007) [#2]
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


Grisu(Posted 2007) [#3]
Does this also work under Windows Vista?


Jake L.(Posted 2007) [#4]
Try it. I refuse to install vista at home until forced to. But will get it at work in a few weeks...


Grisu(Posted 2007) [#5]
I would, but I don't have Vista.

I'm only concerned of compatibility issues here.

CAN SOMEONE TEST IT PLEASE?!?


grable(Posted 2007) [#6]
I refuse to install vista at home until forced to

Amen brother! ;)


Grisu(Posted 2007) [#7]
Me too, but there're a lot of customers out there that do.

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


Grisu(Posted 2007) [#8]
As a friend of mine tested it with Vista 32Bit.
No changes to the buttons were visible!


Jake L.(Posted 2007) [#9]
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.


Thareh(Posted 2007) [#10]
Thanks for the replys! I forgot I even wrote this topic myself :P
The Manifest was the thing I was looking for, Thanks alot :)


ziggy(Posted 2007) [#11]
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