I am trying to embed the browser in one of the panes in my main window.

How do I provide chrome with the right window handle?

More details:
I am working with winEmbed. The code below gets a handle to a new window.
Can I provide the handle of an already created window, instead?

CallQueryInterface(NS_STATIC_CAST(nsIWebBrowserChrome*, chrome),
aNewWindow);
  // now an extra addref; the window owns itself (to be released by
  // WebBrowserChromeUI::Destroy)
  NS_ADDREF(*aNewWindow);

Any help will be really appreciated.

Thanks.

Vibi



Reply via email to