zoukankan      html  css  js  c++  java
  • MFC对话框美化使其具有xp/win7风格(转载)

    首先在RES目录下建一个文件,命名 windows.manifest 后缀为:.manifest

    然后用记事本打开放入  
     
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>  
    <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">  
    <assemblyIdentity  
      name="Microsoft.Windows.XXXX"  
      processorArchitecture="x86"  
      version="5.1.0.0"  
      type="win32"/>  
    <description>Windows Shell</description>  
    <dependency>  
      <dependentAssembly>  
      <assemblyIdentity  
      type="win32"  
      name="Microsoft.Windows.Common-Controls"  
      version="6.0.0.0"  
      processorArchitecture="x86"  
      publicKeyToken="6595b64144ccf1df"  
      language="*"  
      />  
      </dependentAssembly>  
    </dependency>  
    </assembly>  
    保存..  
     
    然后导入资源,把文件windows.manifest添加到工程的资源中:
    插入->资源->引入->文件类型改为“所有文件"->找到windows.manifest->弹出对话框
    资源类型 填"24"->确定后(弹出一堆象乱码一样的东西,汗!!)
    再把资源的ID改为"IDR_MANIFEST"
    然后在String Table中添加IDR_MANIFEST,值为1
     
    重新生成编译运行
     
    你的程序就有了XP/Win7的风格 
  • 相关阅读:
    Python内置函数(33)——any
    Python内置函数(32)——all
    Mybatis相关SQL操作总结
    mybatis与oracle使用总结
    J2EE分布式服务基础之RPC
    J2EE企业级应用架构
    Dubbo模块介绍
    Dubbo简介
    Http之ContentType
    JSONP解决跨域方案
  • 原文地址:https://www.cnblogs.com/luckyqiao/p/3905429.html
Copyright © 2011-2022 走看看