早期程序界面太醜陋?一招使其具有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 

變身完成! 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章