It looks like the documentation typedefs the nsWindow as an nsBaseWidget.
So maybe you can try something like this:

//--------------------------------------------------------------------------
---
nsIWebBrowser *piwbWebBrowser = nsnull;
nsIBaseWindow *pibwBaseWindow = nsnull;
nsWindow *pWindow = nsnull;

chrome->GetWebBrowser (&piwbWebBrowser);
piwbWebBrowser->QueryInterface (NS_GET_IID (nsIBaseWindow), (void**)
&pibwBaseWindow);
piwbWebBrowser->Release ();
piwbWebBrowser = nsnull;
pibwBaseWindow->GetMainWidget (&pWindow);
piwbBaseWindow->Release ();
piwbBaseWindow = nsnull;

//Do your GUI stuff here

pWindow->Release ();
pWindow = nsnull;
//--------------------------------------------------------------------------
---

That should work for up to at least GetMainWidget(), but I'm not sure about
actually getting an nsWindow object from that.  I hope that helps.  If I
find anything else I'll reply again.

Niky Williams


"Neeraj Tewari, Noida" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi ,
> Can anyone help me to get nsWindow pointer from
chrome(nsIWebBrowserChrome) pointer.As i want to redraw the chrome
> region in some situation.
>
> thanks in advance
> Neeraj
>


_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to