Hi, I recently upgraded to WinXP and I've noticed only some programs have fully embraced the new XP style. For example Gnucleus and FlashGet have all the cool looking XP buttons and such whereas EditPlus 2 doesn't.
But the real downer is that none of my Asm programs changed (other than the main titlebar). Does any one know how to get them to looke like other XP programs, do I need a new resource editor?
Gnucelus is written with VC++ 6 and I have that, but mines 6.0, do only later versions of its resource editor support the style change?
But the real downer is that none of my Asm programs changed (other than the main titlebar). Does any one know how to get them to looke like other XP programs, do I need a new resource editor?
Gnucelus is written with VC++ 6 and I have that, but mines 6.0, do only later versions of its resource editor support the style change?
Basically, you have to include a '.manifest' in the resource or
program folder to let XP know it's okay to use the new styles.
program folder to let XP know it's okay to use the new styles.
Thanks bAZik and bitRAKE, linking to ComCtl32 and placing a file in the directory worked like a charm.
However I'm not to sure how to go about using it as a resource, does anyone what the equates are for CREATEPROCESS_MANIFEST_RESOURCE_ID & RT_MANIFEST.
Once thanks for the help. :)
However I'm not to sure how to go about using it as a resource, does anyone what the equates are for CREATEPROCESS_MANIFEST_RESOURCE_ID & RT_MANIFEST.
Once thanks for the help. :)
winuser.h:
Thomas
[b]#define RT_MANIFEST MAKEINTRESOURCE(24)[/b]
[b]#define CREATEPROCESS_MANIFEST_RESOURCE_ID MAKEINTRESOURCE( 1)[/b]
#define ISOLATIONAWARE_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(2)
#define ISOLATIONAWARE_NOSTATICIMPORT_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(3)
#define MINIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE( 1 /*inclusive*/)
#define MAXIMUM_RESERVED_MANIFEST_RESOURCE_ID MAKEINTRESOURCE(16 /*inclusive*/)
Thomas
I just love being part of the bleeding edge... :grin:
Thasnk guys, all this is really helpful.
I haven't had a chance to check this in masm quite as I have no access to it.
However I was trying it in Fasm, again its works if I use the external file, but I'm not sure how to include the file as a resource. I was trying to understand the bitmap macro as an example, but that didn't work.
I haven't had a chance to check this in masm quite as I have no access to it.
However I was trying it in Fasm, again its works if I use the external file, but I'm not sure how to include the file as a resource. I was trying to understand the bitmap macro as an example, but that didn't work.
If anyone interested here is how I did
in your .rc file
1 24 DISCARDABLE "xptheme.xml"
in your xptheme.xml
You should also add invoke InitCommonControls to top of your source code
It worked for me
in your .rc file
1 24 DISCARDABLE "xptheme.xml"
in your xptheme.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="x86"
version="5.1.0.0"
type="win32"
name="program.exe"/>
<description>Mx XP Program</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>
You should also add invoke InitCommonControls to top of your source code
It worked for me
Keywords: WinXP WindowsXP theme style comctrl32 manifest xml :)