Hi The user pushed a button that opens a dialog (either modal or modeless, it doesn't matter) I recorgnize its HWND and I have an access to its IHtmlDocument -> I successfully mabipulate the DOM in the dialog. BUT , I need the IHtmlDialog interface, and I don't know how to get it from the IHTmldocument. "parentWindow" returns IHTMLWindow2 and "queryInterface" to IHtmlDialog fails... Igor? Anyone? I searched the net but didn't find advise... TIA Noa
So I got it, and this is how : from the IHtmlDocument I get the parent window. from the parent window I get the "external" and this is the dialog .... But now I have a new question .. and I'll post it as a new subject :-) Noa wrote: > Hi > > The user pushed a button that opens a dialog (either modal or > modeless, it doesn't matter) > I recorgnize its HWND and I have an access to its IHtmlDocument -> I > successfully mabipulate the DOM in the dialog. > > BUT , I need the IHtmlDialog interface, and I don't know how to get it > from the IHTmldocument. > > "parentWindow" returns IHTMLWindow2 and "queryInterface" to > IHtmlDialog fails... > > > Igor? > > Anyone? > > I searched the net but didn't find advise... > > TIA > > Noa