积极答复者
在一个进程当中点一个链接!想在另一个进程中打开页面!在OnNewWindow2函数如何处理比较好?

问题
答案
-
我以前是用Newwindow3 来实现的:
void NewWindow3(
IDispatch **ppDisp ,
VARIANT_BOOL *Cancel ,
DWORD dwFlags ,
BSTR bstrUrlContext ,
BSTR bstrUrl
);你不能指望CHtmlView, 用这个NewWindow3 你得实现DWebBroswserEvents2 事件接口。
- 已标记为答案 Nancy Shao 2010年4月7日 7:19
-
也可以重载未公开的虚函数NewWindow2。参考http://code.msdn.microsoft.com/IEAutomation
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Nancy Shao 2010年4月7日 7:19
全部回复
-
我以前是用Newwindow3 来实现的:
void NewWindow3(
IDispatch **ppDisp ,
VARIANT_BOOL *Cancel ,
DWORD dwFlags ,
BSTR bstrUrlContext ,
BSTR bstrUrl
);你不能指望CHtmlView, 用这个NewWindow3 你得实现DWebBroswserEvents2 事件接口。
- 已标记为答案 Nancy Shao 2010年4月7日 7:19
-
也可以重载未公开的虚函数NewWindow2。参考http://code.msdn.microsoft.com/IEAutomation
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Nancy Shao 2010年4月7日 7:19