In addition to passing the WindowPtr, you must also pass on certain OS events to the embedding object. These include mouse events and draw events. I found it helpful to look at the source for wxMozilla(an open-source embedding project) to get an idea of the types of things you may need to do.

Oh, another thing. Mozilla changes the port origin as well as clipping, so you will need to make sure you restore this after pretty much every call to mozilla (and some other times as well, as they may be doing stuff in another thread as well).

J

On Apr 14, 2005, at 2:09 AM, Jonathan Le wrote:

Hello all,

I've already successfully done some tests with embedding and embedded gecko and editor into a native app for Windows XP. The only difference i see as far as embedding it on Mac OS X is concerned is the nativeWindow used with nsIBaseWindow::InitWindow (using nsWebBrowser).

Can I just use a WindowPtr instead of a HWND on Mac OS X and expect it to work? Is there anything else that is essential to embed on Mac?

thanks for any input you may have ;)

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


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

Reply via email to