MFC chtmlview Windows 7问题 [英] MFC chtmlview Windows 7 issue

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

问题描述

我正在处理一个旧的MFC项目.用户正在使用Windows 7,他们遇到了Windows XP上不会发生的以下问题:

I am working on an old MFC project. Users are using Windows 7 they are expierincing the following problem which does not occur on Windows XP:

MFC应用程序承载一个CHtmlView,它显示一个自定义HTML站点,该站点位于磁盘上的一个文件中.该html文档大量使用Javascript.如果您启动程序,则在某些情况下(例如,在重新启动后),将显示CHtmlView控件,HTML文件无法正确显示.

The MFC application hosts a CHtmlView which presents a custom HTML site located as a file on the disk. This html document heavily uses Javascript. Wenn you start the program and the CHtmlView control is displayed, in some cases - for example after a fresh reboot - the HTML file is not properly displayed.

使用F5刷新站点或最小化应用程序并将其最大化可以解决此问题.

Refreshing the site using F5 or minimizing the application and maximizing it again solves this issue.

我知道CHtmlView使用的是ActiveX控件,因此我尝试更改IE的系统设置.但这并不能完全解决问题.重新启动后的问题仍然存在.

I know that CHtmlView is using an ActiveX Control and thus I have tried to change system settings for IE. But this did not solve the problem altogether. The issue after a reboot still remains.

感谢所有帮助.

如果您需要更多信息,请随时提问.

If you need more information, feel free to ask.

推荐答案

您是否在有问题的客户端上运行Internet Explorer 9.0?他们从该版本开始更改了某些WM_PAINT逻辑,因此我认为您至少需要MFC 10.0才能避免使用怪异的图形工件.

Are you running Internet Explorer 9.0 on the problematic client? They changed some of the WM_PAINT logic as of that version, so I think you need at least MFC 10.0 to avoid weird drawing artifacts.

我以前听说过类似的问题,但我仍然只是在这里猜测:)

I've heard about similar issues before, but I'm still just guessing here :)

这篇关于MFC chtmlview Windows 7问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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