MFC chtmlview Windows 7 issue

2019-09-04 09:35发布

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.

标签: windows-7 mfc
1条回答
2楼-- · 2019-09-04 09:55

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

查看更多
登录 后发表回答