本文主要是介绍早期程序界面太丑陋?一招使其具有win10风格,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
这是vc6.0编写的一个网络调试工具,界面放到现在惨不忍睹,与win10风格格格不入。
复制下面的xml代码,保存成文件到“TCP&UDP测试工具”所在目录,例如 style.manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><dependency><dependentAssembly><assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity></dependentAssembly></dependency><trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"><security><requestedPrivileges><requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel></requestedPrivileges></security></trustInfo><application xmlns="urn:schemas-microsoft-com:asm.v3"><windowsSettings><dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware></windowsSettings></application>
</assembly>
打开 vs 的 开发人员命令提示符 开始菜单 -> Visual Studio 2017 -> VS2017的开发人员命令提示符,cd 到 TCP&UDP测试工具所在的目录。
执行如下命令,将 style.manifest 嵌入到 TCPUDPDbg.exe 可执行文件中
mt -manifest style.manifest -outputresource:TCPUDPDbg.exe;#1
重新打开 TCPUDPDbg.exe
变身完成!
这篇关于早期程序界面太丑陋?一招使其具有win10风格的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!