Re: Embedded ActiveX Event Sink



"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


.