Embedded ActiveX Event Sink
- From: "spam purse" <nospamisgoodspam@xxxxxxxxx>
- Date: 5 Dec 2005 23:47:03 -0800
I use a web browser control and the built-in target name resolution to
launch content in a dialog.
The main type of content is launched in an embedded activex control
using the default launch, similar to flash etc.
e.g.
HTML
BODY
EMBED
I used to have the embedded object stright in my dialog and could
receive events that it generated using the EVENTSINK_MAP from the
wizard
eg
ON_EVENT(CERMyApplicationDlg, IDC_MYCONTROL, 2, OnEvent, VTS_BSTR
VTS_BSTR VTS_R8)
but now I want to receive the events by connecting to the control, I
can traverse the DOM and get to the EMBED tag just fine, I am having
trouble getting the interface to the object in this EMBED tag. Is there
an easy way to get this?
So instead of that I have faked it by placing another control in my app
for testing so that I have a handle to the IUnknown, IDispatch etc
What is the simplest way to connect to these events, they are handled
using wizards in MFC, I know they must be there because I can handle
them through the wizard.
Is it possible to dynamically add events to the EVENTSINK_MAP
or is there some other way I should be doing this.
.
- Follow-Ups:
- Re: Embedded ActiveX Event Sink
- From: Igor Tandetnik
- Re: Embedded ActiveX Event Sink
- Prev by Date: disable/enable scripts on webpage
- Next by Date: Re: Embedded ActiveX Event Sink
- Previous by thread: disable/enable scripts on webpage
- Next by thread: Re: Embedded ActiveX Event Sink
- Index(es):
Relevant Pages
|
|