RE: Getting nsWindow from chrome

2005-07-19 Thread Neeraj Tewari, Noida
Thanks for your help but GetMainWidget return the parent widget of chrome window and not chrome widget pointer. I tried following code but that seems to be very complex .. nsCOMPtr webBrowser; nsCOMPtr webNavigation; nsCOMPtr

Please help with nsIDOMWindow::SizeToContent () Oddities

2005-07-19 Thread Niky Williams
I've embedded Gecko into an App I've created...sorta a web browser, but very limited and very customized for what we need. Here is my problem. When I'm browsing around the web with it, the nsIDOMWindow::SizeToContent () works great (I call it after the page has loaded on nsIWebProgressListener::O

Re: Getting nsWindow from chrome

2005-07-19 Thread Niky Williams
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 = n