I embedded mozilla in Windows and c++, like this:
NS_InitEmbedding(nsnull, nsnull);
nsCOMPtr<nsIWebBrowser> mWebBrowser;
mWebBrowser = do_CreateInstance(NS_WEBBROWSER_CONTRACTID, &rv);
chrome= new WebBrowserChrome;
chrome->AddRef();
chrome->SetWebBrowser(mWebBrowser);
mWebBrowser->SetContainerWindow(NS_STATIC_CAST(nsIWebBrowserChrome*,
chrome));
nsCOMPtr<nsIBaseWindow> mBaseWindow;
mBaseWindow= do_QueryInterface(mWebBrowser, &rv);
mBaseWindow->InitWindow(nsNativeWidget(hwnd),nsnull, 0,0,200,200);
mBaseWindow->Create();
mBaseWindow->SetVisibility(PR_TRUE);
Where chrome is very similar to the WebBrowserChrome object in
winEmbed.
How do I let the browser handle the keyboard up/down arrows, and the
mouse scroll wheel?
I've tried many thing, including setting the focus of mBaseWindow, and
calling Windows' SetForegroundWindow().
Please help.
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding