Pokazywanie postów oznaczonych etykietą destruction. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą destruction. Pokaż wszystkie posty

niedziela, 15 listopada 2009

Gecko window creation and destruction

My current assumptions on this matter:

1. Instantiate your own implementation of nsIWebBrowserChrome.2. Create nsIWebBrowser:3. Tell nsIWebBrowser what chrome it's in:4. Query nsIBaseWindow from nsIWebBrowser:5. Create native window: hWnd.
6. Tell nsIBaseWindow to create browser window - a child of hWnd:7. Add listeners of your choice (if you want):8. Update size of browser window based on native window (see Resizing browser window):9. Show native window: