CHtmlview中的svg(MFC) [英] svg in CHtmlview (MFC)

查看:233
本文介绍了CHtmlview中的svg(MFC)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在MFC应用程序中从CHtmlView派生的视图中使用SVG进行绘制。但是,当我在记事本中复制同一个源并使用Internet Explorer打开它时,它正在工作。我的机器上安装的IE版本是IE9。有人能帮助我吗?

解决方案

浏览器控件在IE7兼容模式下运行,因此无论您的计算机上安装了IE版本,都不支持新功能。



您可以在您的HTML中添加元标记以指定浏览器版本:

 < meta http-equiv =X-UA-Compatiblecontent =IE = Edge/> 

或者,您可以添加注册表项以使应用中的所有浏览器控件使用特定的IE版。请参阅 http:// weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version

I am not able to draw using SVG in a view derived from CHtmlView in my MFC application. However when I copy the same source in a notepad and open it with Internet explorer, it is working. The version of IE installed on my machine is IE9. Could someone please help me with this?

解决方案

The browser control runs in IE7 compatibility mode, so won't support newer features regardless of the IE version installed on your machine.

You can add a meta tag to your HTML to specify the browser version:

<meta http-equiv="X-UA-Compatible" content="IE=Edge" />

Or, you can add a registry entry to make all the browser controls in your app use a particular IE version. See http://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version.

这篇关于CHtmlview中的svg(MFC)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆