MFC chtmlview Windows 7 issue

谁说胖子不能爱 提交于 2019-12-25 07:49:33

问题


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:

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.

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

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.

All help is appreciated.

If you need more information, feel free to ask.


回答1:


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 :)



来源:https://stackoverflow.com/questions/9194990/mfc-chtmlview-windows-7-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!