CAxWindow中的IWebBrowser2和按键问题 [英] IWebBrowser2 in CAxWindow and keystroke problem

查看:118
本文介绍了CAxWindow中的IWebBrowser2和按键问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的。


我有一个CAXWindow,其中有一个WebBrowser作为控件。


我遇到的问题是删除,退格和菜单在网页的编辑框内不起作用。


我已经实现了 IDocHostUIHandler并使用 ICustomDoc :: SetUIHandler方法将其链接到WebBrowser,期望我能够使用IDocHostUIHandler :: TranslateAccelerator获取密钥,但它没有被调用。调用此接口的其他方法。


任何想法?


感谢您提前获得帮助。

解决方案

您可以使用以下代码:



Dear all.

I have a CAxWindow that has a WebBrowser as a control inside.

The problem that I have is that Delete, Backspace and menu doesn't work inside the edit boxes of the web page.

I've implemented IDocHostUIHandler and linked it to the WebBrowser with ICustomDoc::SetUIHandler method expecting that I'll be able to get the key pressing with IDocHostUIHandler::TranslateAccelerator, but it's not called. Other methods of this interface are called.

Any ideas?

Thanks for the help in advance.

解决方案

you can use this code :



这篇关于CAxWindow中的IWebBrowser2和按键问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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