有人有关于 7 或 Vista 上的 Delphi 和 Windows Aero 的好资源吗?
我们即将将 Windows 7 添加到我们的公司,并希望确保我们的内部应用程序尽可能适应。
使用 Delphi 2010,我可以添加玻璃框架,菜单栏继承了 Aero 外观,但是选项卡控件、网格和状态栏都显得过时了。
有什么帮助吗?
我们包含我们自己的清单资源,因为据我所知,Delphi 不包含 Windows 7(和 Vista?)的新清单添加。在来自的帮助下http://msdn.microsoft.com/en-us/library/dd371711(VS.85).aspx and here and here:
使用单行创建文件“mymanifest.rc”
1 24 "my.manifest"
并创建一个名为 my.manifest 的文件,如下所示
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity type="win32" name="OUR COMPANY NAME" version="3.1.0.0" processorArchitecture="*"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="*"/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--The ID below indicates application support for Windows Vista -->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
<!--The ID below indicates application support for Windows 7 -->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
</application>
</compatibility>
</assembly>
然后将 mymanifest.rc 添加到您的项目中并关闭“启用运行时主题”选项,因为这会执行相同的操作(但灵活性较差)。可以更改“requestedExecutionLevel”部分以满足应用程序的 UAC 需求。
为我们工作。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)