"Nasir Khan" <[EMAIL PROTECTED]> a �crit dans le message de
news:[EMAIL PROTECTED]
> Hi
> I am new to embedding mozilla, in fact new to Mozilla itself. I am trying
to
> figure out if embedding mozilla is possible without having any gui
> interface. In other words a browser session without any visual interface ?
> From what I read it looks as if you have to register your visual browser
> window in order that gecko may send some events. Can it be a non visual is
> the question.
Hi Nasir,
I'm embedding Mozilla on Windows, and it is possible to create invisible
windows. I think it's the same on other platforms. If you're using the Win32
API, just embed your browser in a normal, visible window (useful for
debugging). When you're done, replace your CreateWindowEx call with
something like :
ATOM aWindow=...;
HINSTANCE hInstance=...;
CreateWindowEx(0, reinterpret_cast<LPCTSTR>(aWindow), _T(""), WS_POPUP |
WS_MINIMIZE, 0, 0, 0, 0, NULL, NULL, hInstance, NULL);
Your window should be invisible, but should still receive Windows events.
Mathieu CARTOIXA
_______________________________________________
mozilla-embedding mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-embedding