Re: Embedded ActiveX Event Sink
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Tue, 6 Dec 2005 07:59:42 -0500
"spam purse" <nospamisgoodspam@xxxxxxxxx> wrote in message
news:1133855223.036920.295600@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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?
Try querying the element for IHTMLObjectElement interface and getting
its "object" property. I know it works for <object> tags, but haven't
tried with <embed>
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- Follow-Ups:
- Re: Embedded ActiveX Event Sink
- From: spam purse
- Re: Embedded ActiveX Event Sink
- References:
- Embedded ActiveX Event Sink
- From: spam purse
- Embedded ActiveX Event Sink
- Prev by Date: Embedded ActiveX Event Sink
- Next by Date: Download progress? PDF file
- Previous by thread: Embedded ActiveX Event Sink
- Next by thread: Re: Embedded ActiveX Event Sink
- Index(es):