您的位置:程序门 -> vc/mfc -> 界面



ocx中的界面怎么实现xp风格?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


ocx中的界面怎么实现xp风格?[已结贴,结贴人:yyan]
发表于:2007-03-24 12:07:54 楼主
我写的一个ocx,其中会弹出一个dialogbox   但是我加了manifest文件这些界面也不会变成xp风格,我该怎么做呢?
发表于:2007-03-24 12:33:411楼 得分:50
把你的ocx所在的容器弄成xp样式的,oxc自动就是xp样式的了,不用做任何处理。
发表于:2007-03-24 12:49:342楼 得分:0
可以我是要在浏览器中使用呀。有什么好办法,帮帮我吧
发表于:2007-03-24 14:55:053楼 得分:50
据我所知,无解!

另外,你可以这样,写一个xml文件,名字叫iexplore.exe.manifest,放到ie同目录下,内容为:
<?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>

这段xml程序到处都可以找得到。
发表于:2007-03-25 17:07:344楼 得分:0
找到一个好办法,先谢谢大家。放分


快速检索

最新资讯
热门点击