What type of native handle should be passed to the XPCOM call
nsIBaseWindow->InitWindow(?,...) on the Mac?

The PowerPlant PPEmbed sample contains this line in CBrowserShell.cpp

mWebBrowserAsBaseWin->InitWindow(aWidget->GetNativeData(NS_NATIVE_WIDGET),
nsnull, r.x, r.y, r.width, r.height);

The aWidget is created in 'EnsureTopLevelWidget':
nsCOMPtr<nsIWidget> newWidget(do_CreateInstance(kWindowCID, &rv));
...
rv = newWidget->Create(GetMacWindow(), r, nsnull, nsnull, nsnull,
nsnull, nsnull);

But it's still not clear which kind of handle I could pass on my own
app? Can I use the handle of an existing application window, not
created through do_CreateInstance(kWindowCID, &rv)) ?

Chris

Reply via email to