Events from the WebBrowser control
- From: Norman Bullen <norm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Feb 2007 01:54:31 GMT
The MSDN documentation for DWebBrowserEvents2 says that it derives
indirectly from IDispatch and shows members such as BeforeNavigate2 and
NavigateComplete2. However, when I look at the header file (ExDisp.h) I
see that DWebBrowserEvents2 derives directly from IDispatch and does not
add any additional members.
A search of the Include directory finds these name in ExDisp.idl as
members of a "dispinterface" with the name DWebBrowserEvents2 but
apparently they are not transferred into the header file.
I have some sample code that compares at the DISPID_xxx names associated
with the dispinterface functions with the dispIdMember argument that is
passed to DWebBrowserEvents2::Invoke().
Is this the best/only way to handle these events in C++? Or can I create
a class based on what I found in the IDL file and have the event
functions that are documented called directly? If so, how do I tell the WebBrowser control to use my class as an interface?
Norm
--
--
To reply, change domain to an adult feline.
.
- Follow-Ups:
- Re: Events from the WebBrowser control
- From: Igor Tandetnik
- Re: Events from the WebBrowser control
- Prev by Date: Re: Should IDocHostUIHandler::GetExternal AddRef?
- Next by Date: Re: Events from the WebBrowser control
- Previous by thread: Re: Does IE support <ul>, <ol> and <div> tags?
- Next by thread: Re: Events from the WebBrowser control
- Index(es):
Relevant Pages
|