rv = baseWindow->InitWindow(frame->m_wxwindow, 0, 0, 0, 300, 400);

Should help. I spend lot of time figuring this out and I am not quit
done yet.

Another thing you might need to do is responding to OnSize events:

void MyFrame::OnSize ( wxSizeEvent &pEvent )
{
        wxRect newRect = this->GetClientRect();
        baseWindow->SetPositionAndSize (
                newRect.GetLeft(), newRect.GetTop(),
                newRect.GetWidth(), newRect.GetHeight(), PR_FALSE );
}

This works for me. Well almost. I still need to manually resize the
window once it's created to get the Mozilla contents drawn.

Also when I exit I get some error messages from Gtk.

If you can figure out how to correct these errors please report the
fixes back here or to me directly :-)

-Martin
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to