|
-
January 26th, 2004, 05:20 AM
#1
XP Look in VC 6
I'm using windows XP how do I get the XP look in a project created on VC 6?
-
January 26th, 2004, 06:08 AM
#2
Create a manifest file call myapp.exe.manifest (where myapp is the name of your application. Put this in it:
Code:
<?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="MyCompany.MyProduct.MyProduct"
type="win32"/>
<description>Some description.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"/>
</dependentAssembly>
</dependency>
</assembly>
The manifest tells Windows to use the version 6 common controls. Put the manifest file in the same directory as your exe.
-
January 26th, 2004, 06:43 AM
#3
Thanks for the answer, but I didn't manage to get the XP Look.
I put the file under the res directory and under the Debug directory, I have inserted in the .RC file the following line:
IDR_MANIFEST RT_MANIFEST "res\\XPLook.manifest"
and in the Resource.h file the following line:
#define IDR_MANIFEST CREATEPROCESS_MANIFEST_RESOURCE_ID
Is something missing?
-
January 26th, 2004, 07:10 AM
#4
-
January 26th, 2004, 10:05 AM
#5
As far as I know, you just have to build the project. I use XP but I don't use the XP look. I wanted to show my program using the XP look so I changed my theme to use it. My program was shown using the XP look (or at least I thought it did).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|