MFC adds XP style

Source: Internet
Author: User

1. Create a TXT file

Add Content:

<?xml version= "1.0" encoding= "UTF-8" standalone= "yes"?>
<assembly xmlns= "urn:schemas-microsoft-com:asm.v1" manifestversion= "1.0" >
<assemblyidentity
Name= "XP style manifest"
Processorarchitecture= "x86"
version= "1.0.0.0"
Type= "Win32"/>
<dependency>
<dependentAssembly>
<assemblyidentity
Type= "Win32"
Name= "Microsoft.windows.common-controls"
version= "6.0.0.0" processorarchitecture= "x86"
Publickeytoken= "6595B64144CCF1DF"
Language= "*"
/>
</dependentAssembly>
</dependency>
</assembly>

Place the files in the project directory folder.

Change the file name and format of the TXT file to: xpstyle.manifest

2. import files into VC resources

Type set to 24, and modify the ID to Idr_manifest


3. In the Resource.h file

Change the value of Idr_manifest to 1


MFC adds XP style

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.