thanks for the reply. I have a Application in silimar lines to the MFCEmbed sample. In this application I need access to the PresShell. I am using the GetPrimaryFrameFor method on the PresShell to get the nsIFrame for the HTMLAnchorElements and from there some info regarding the element. In a general Document I am getting the DocShell interface from the WebBrowser instance and from there PresShell and nsIFrame. When there is a FrameSet I am still getting the DocShell and PresShell for the Main Document. I am not sure how to get these interfaces for the underlying frames.
when You said I can get Docshell from the window, you meant nsIWindow or nsIDOMWindow or in general Browser Window? thanks Kanth "Boris Zbarsky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > kantha Kanchiraju wrote: > > How does the gecko layout a page having frameset. Will each Frame inside the > > frameset have its own DocShell and PresShell. > > Yes to both. > > > If so how can I reach those interfaces. > > From where? Generally speaking, you can get the docshell from the window. > > -Boris _______________________________________________ dev-tech-layout mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-layout

