VS.NET 2003 能实现XP风格的界面吗?(只用VS.NET直带的库)

解决方案 »

  1.   

    In my opinion,
    you have better to use BCG interface library to solve this 
    problem.
      

  2.   

    But I know a way to solve this problem easy.
    just only set the character set to unicode,
    is that all
      

  3.   

    要么就用专业库.要么就这样.codeproject里有介绍.
    1、插入资源,选择"Custom",输入“24”作为资源的内型。
    2、拷贝如下XML脚本到资源编辑器。<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
    <assembly 
       xmlns="urn:schemas-microsoft-com:asm.v1" 
       manifestVersion="1.0">
    <assemblyIdentity 
        processorArchitecture="x86" 
        version="5.1.0.0"
        type="win32"
        name="test.exe"/>
        <description>Test Application</description>
        <dependency>
        <dependentAssembly>
        <assemblyIdentity
             type="win32"
             name="Microsoft.Windows.Common-Controls"
             version="6.0.0.0"
             publicKeyToken="6595b64144ccf1df"
             language="*"
             processorArchitecture="x86"/>
        </dependentAssembly>
        </dependency>
    </assembly>你可以把脚本中“test.exe”和“Test Application”替换成你想要的名字,这对程序运行没有任何影响。
    3、把资源ID设置为1
    4、在WinMain()中加入InitCommonControls()语句(如果使用了MFC,请在CApplication::InitInstance()中加入),不要忘记包含头文件commctrl.h"
    5、设置工程,在Link选项中,在Object/Library Modules编辑框中,填入"comctl32.lib"
    6、至此你的程序已经具有漂亮的Windows XP对话框了。
    ————————————————————————————————————————
    以上是VC6的,.Net应该差不多。
      

  4.   

    回答问题怎么都牛头不对马嘴呢?
    看楼住的意思,一定是指在98,2000上也要有xp风格对不对?
    如果只是在xp上,只要一个xml配置文件就可以了,无所谓vs.net还是vc6.这样的话,我可以告诉你,vc.net不能,如果你要xp风格,那么去用第三方的UI库,比如bcg, extreme toolkit等.
      

  5.   

    BCG 库不够灵活,太死板了
    连虚函数重载都要自己一个一个手写
      

  6.   

    不对呀!WS.net是自己带有XP风格资源的呀!
      

  7.   

    NET2003是自己带有XP风格资源,在NET2003下怎么实现了?
    用的OS是XP。