MFC自定义浏览器 - 如何在单击提交按钮时从文本框中读取值 [英] MFC custom browser - How to read value from the text box on click of submit button
问题描述
目前正在使用MFC处理自定义浏览器。我已经扩展了 CHtmlView类。我想阅读最终用户点击提交按钮时输入的文字。请建议如何实现这一目标。
Currently working on custom browser using MFC. i have extended CHtmlView class. I want to read text which is entered by end user on click of submit button. please suggest how to achieve this.
我试图在OnBeforeNavigate2和OnDocumentComplete事件上读取html元素,但无法实现。
I tried to read html element on OnBeforeNavigate2, and OnDocumentComplete event but couldn't achieve it.
I想要在点击提交按钮时读取html元素值。
I want to read html element value on click of submit button.
推荐答案
这里是示例:
https://www.codeproject.com / Articles / 4805 /高级定制的WebBrowser-Control-in-Di
特别参见DISPID_CB_CustomFunctionWithParams 的使用情况在STDMETHODIMP CImpIDispatch :: Invoke()方法中。
Here's a sample:
https://www.codeproject.com/Articles/4805/Advanced-customization-of-WebBrowser-Control-in-Di
In aprticular see usage of DISPID_CB_CustomFunctionWithParams in the STDMETHODIMP CImpIDispatch::Invoke() method.
-Seetharam
-Seetharam
这篇关于MFC自定义浏览器 - 如何在单击提交按钮时从文本框中读取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!