VS2008 - 无法重新绘制chtmlview窗口 [英] VS2008 - unable to get the chtmlview window repainted

查看:76
本文介绍了VS2008 - 无法重新绘制chtmlview窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CHTMLView上的MFC(VS2008版)模式对话框弹出窗口导致重新绘制视图(CHTMLView)窗口的问题。



实际实现是,正在通过按钮单击功能在网页上启动MFC C ++模式对话框弹出窗口。该网页在CHTMLView类中启动,并且用网页JavaScript编写的按钮单击功能正在使用ActiveX调用来调用C ++模式对话框弹出窗口。



问题是,当对话框弹出窗口在CHTMLView窗口的网页上​​移动时,它会导致其在CHTMLView窗口上占用的区域未上漆,这会留下多个视图对话框留在CHTMLView窗口的各处,这适用于在对话框后面保持打开的CHTMLView的多个窗口。



我不知道如何处理在这一刻,因为,我们有功能工作了一段时间,突然它现在导致这个问题。



CHTMLView正在使用VS2008版本的MFC编译dll,它使用IE v11,Java运行时环境版本是v7。 CHTMLView在windows7上运行。



在这里感谢您宝贵的技术建议/建议。



我尝试过:



尝试通过调用CWnd :: Invalidate()以及CWnd中的CWnd :: UpdateWindow()来发送WM_PAINT消息:: OnMove()函数,Modal对话框弹出窗口(CDialog类)的ON_WM_MOVE事件的处理程序,但此解决方案不起作用。

解决方案

A简单的CHtmlView :: Refresh()应该完成这项工作。 :-O

The MFC(VS2008 version) modal dialog popup window over CHTMLView is causing an issue of repainting the view (CHTMLView) window.

The actual implementation is, the MFC C++ modal dialog popup window is being launched over the webpage on a button click function. The webpage is launched in the CHTMLView class and the button click function written in JavaScript of the webpage is using the ActiveX call to invoke the C++ modal dialog popup window.

The issue is, when the Dialog popup window is moved over the webpage in CHTMLView window, it is causing its area occupied over the CHTMLView window unpainted and this leaves multiple view of the dialog left all over the CHTMLView window, this applies to the multiple window of CHTMLView kept opened behind the dialog.

I am not sure of how this could be dealt at this moment, because, we have the function working for sometime and all of sudden it is causing this issue now.

The CHTMLView is being compiled using VS2008 version of MFC dll and it uses IE v11 and the Java runtime environment version is v7. The CHTMLView runs on windows7.

Appreciate your valuable technical advice/suggestion here.

What I have tried:

Tried sending the WM_PAINT message by calling CWnd::Invalidate() and also with CWnd::UpdateWindow() from the CWnd::OnMove() function, a handler to the ON_WM_MOVE event of the Modal Dialog popup window (CDialog class), but this solution doesn't work.

解决方案

A simple CHtmlView::Refresh() should do the job. :-O


这篇关于VS2008 - 无法重新绘制chtmlview窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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