Simple Method to implement XP style for Applications

Source: Internet
Author: User

Posted from Shanghai Jiao Tong University drinking water source BBS VC

Windows XP has made great changes on the interface compared with the previous operating system. It seems pretty even if you see more, but I wonder if you have noticed that it was written directly by using VC.ProgramEven in XP, it seems that some changes are needed. I believe you have seen XML in your resources on the Internet.CodeI will not repeat this method here, or else it may be suspected of plagiarism. This article introduces a very convenient method and hopes to help you. This method is actually related to XML, but not to the resource. Please follow the steps below.

1. Check that you are running Windows XP, because if you are running Windows XP at 98 or 2 K, the XP style is basically impossible unless you re-draw all the interfaces.

2. Create a text file and paste the following XML code.
<? 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 = "test.exe"/>
<Description> test application </description>
<Dependency>
<Dependentassembly>
<Assemblyidentity
Type = "Win32"
Name = "Microsoft. Windows. Common-Controls"
Version = "6.0.0.0"
Publickeytoken = "6595b64144ccf1df"
Language = "*"
Processorarchitecture = "x86"/>
</Dependentassembly>
</Dependency>
</Assembly>
Don't ask me what this code means. I don't know. This code is essentially the same as any XML code used to try to implement the XP style. Save the disk when you paste it in. You can choose one name. You still need to modify it later.

3. Suppose there is an executable file abc.exe under your directory c: \ abc. we copy the XML file we just created to c: \ abcand change the name to abc.exe.manifest. now you can run abc.exe to see if it already has an XP style? And so on, create an XML file in the unified directory of each program you want to change to the XP style, and change the name to the executable file name and add ". the extension name of the manifest "((, you can try to create medev.exe in the msdev.exe directory. manifest XML file to see what changes have taken place in VC? Is the dialog box in the resource editor beautiful?

The following describes how to embed XML:
Customize a type of resource in the resource view. Assume It is rt_manifest. paste the above XML file and change the resource ID.
1.

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.