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?
Posted on 2002-04-01 11:11:08 by Eóin
Posted on 2002-04-01 11:18:18 by bazik
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.
Posted on 2002-04-01 12:00:30 by bitRAKE
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. :)
Posted on 2002-04-01 12:37:28 by Eóin
winuser.h:


[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
Posted on 2002-04-01 12:50:34 by Thomas
I just love being part of the bleeding edge... :grin:
Posted on 2002-04-01 22:47:03 by S/390
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.
Posted on 2002-04-02 08:31:54 by Eóin
If anyone interested here is how I did
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
Posted on 2002-04-02 16:42:01 by LaptoniC