发现一个使vc6.0编出来的程序在XP下有xp风格的简单方法,很奇怪!!!!
今天研究一个控件,发现这个控件的例子是在Studio2003下编译,可我用的是VC6.0,我发现将例子重新编译好后例子还是有xp的风格,觉得很奇怪,比较后,我把例子工程中一个*.manifest导入我自己写的工程中,以自定义资源的方式导入的。类型命名为24,ID设定为1(改变为其他类型和ID时都不行),结果发现我用vc6.0编出来的程序的控件也有了xp的风格了(我用的操作系统时xp)。奇怪啊!!!!
*.manifest的内容如下:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="T-Mobile.RAN.netViewer"
type="win32"
/>
<description>netViewer mobile network performance monitoring tool.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
今天研究一个控件,发现这个控件的例子是在Studio2003下编译,可我用的是VC6.0,我发现将例子重新编译好后例子还是有xp的风格,觉得很奇怪,比较后,我把例子工程中一个*.manifest导入我自己写的工程中,以自定义资源的方式导入的。类型命名为24,ID设定为1(改变为其他类型和ID时都不行),结果发现我用vc6.0编出来的程序的控件也有了xp的风格了(我用的操作系统时xp)。奇怪啊!!!!
*.manifest的内容如下:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="T-Mobile.RAN.netViewer"
type="win32"
/>
<description>netViewer mobile network performance monitoring tool.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
解决方案 »
- VC图像处理(各类图像格式(bmp、jpeg、gif、tif等)读取和转换)
- 数据库连接对象的参数选择
- 求职进行时-广州:C/C++/MFC相关工作
- VC中遍历程序中ToolBar工具栏图标
- 请教:(VC6 IDE)如何增加和删除 External Dependencies中的文件?
- 求助:如何调用WINDOWS操作系统中的G723 ACM API函数,在线等。谢谢!!!
- 如何向注册表进行组件注册
- 有考过三级A或是要考计算机三级PC技术的朋友吗?请进!我实在不知道上机是怎样一个考法?谢谢各位
- 不是问题的问题:怎样屏蔽系统错误呢?
- 在vc中如何使用串口通讯
- 刚学MFC,有一个问题不明白。高手指教
- 在框架中包含视图的头文件就出错,怎么回事
<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" MSDN : visual style
谢谢啦!!