Re: How to -> Add in for IE?

From: Igor Tandetnik (itandetnik_at_mvps.org)
Date: 05/24/04


Date: Mon, 24 May 2004 09:27:33 -0400


"harvinder singh" <nospam@itppppps.com> wrote in message
news:c8rvr3$efr$1@news.mch.sbs.de
> 1. I get multiple DISPINT_ONDOCUMENTCOMPLETE when page contain
> frames, how to figure out which message is for which frame.

The first parameter of the event is an IDispatch pointer representing
the frame that fires the event.

> 2. How to get the internals of the frame object. When I iterate over
> IHTMLBodyElement, I can only iterate up to IHTMLFrameElement.

Query the frame element for IWebBrowser2, then get_Document gives you
the document of the frame. Another technique is that of KB Article
KB196340 "HOWTO: Get the WebBrowser Object Model of an HTML Frame"

-- 
With best wishes,
    Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Relevant Pages

  • Re: Autosize bug in Excel 2007 shape textframes
    ... (and I have ugly work arounds) but are just corrumpting ... NickHK wrote: ... (And I have set up a "real" news reader, apologies for the multiple ... but does it jog the Text frame to the correct size ...
    (microsoft.public.excel.programming)
  • Re: DISPID_NAVIGATECOMPLETE2 multiple events
    ... DISPID_NAVIGATECOMPLETE2 is triggered multiple times whe one URL is ... NavigateComplete2 event is fired once for each frame on the page ... Which part of "the first parameter lets you know where the event has ... events that come from a frame, as opposed to top-level browser. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Page alignment issue
    ... On 12/27/06, Aubrey wrote: ... the first page frame of a block should be a multiple of the group ... the kernel task stack should be 2-page aligned. ...
    (Linux-Kernel)
  • Re: Autosize bug in Excel 2007 shape textframes
    ... Then AutoSize the column. ... use a fixed width font and no formatting and just multiply by the ... (And I have set up a "real" news reader, apologies for the multiple ... but does it jog the Text frame to the correct size ...
    (microsoft.public.excel.programming)
  • Re: Place a table sideways (landscape) on a normal page (portrait)
    ... header rows will work. ... The table that goes in a frame is ... Will this work for a table that will cover multiple pages? ...
    (microsoft.public.word.pagelayout)