Hi Andreas,

Your reply make sense. I will try doing the create call in another thread.
This may take a few days as the  OO work is no longer my top priority. I
will let you know one way or the other.

In response to your previous email about the WindowProc I'm hoping that the
technique I copied from the OO ActiveX control of creating a child window
with a ::DefWindowProc and using that window's hwnd for the create call will
be sufficient. I'll find out once I get the create call working.

Thanks,
Don

-----Original Message-----
From: Andreas Schlüns [mailto:[EMAIL PROTECTED] 
Sent: January 19, 2006 3:55
To: [email protected]
Subject: Re: [dev] createSystemChild and createWindow hang on Windows trying
to create a child window


Hello Don,

> I'm trying to display Open Office in a child window on Windows. I've 
> tried both the Hack and Legal approaches described in the 2.0 
> Developer's Guide, section 6.1.7 Java Window Integration, Using the 
> Window Handle (pages 417-418 in my copy). In both cases my code hangs:

It seams that exactly the synchronous execution of the createWindow() / 
createSystemChild() methods is the problem. Because you call OOo 
synchronously. Doing this your own process is blocked. Now OOo uses your 
provided hWnd and make some call's on it. This forces the windows API to 
call your process back to handle e.g. incoming window messages. But they 
cant be executed ... because your process is blocked.

May be it would help, if you use an own thread to create your XWindow 
without blocking your process.

BTW. The OOo ActiveX control uses COM internaly. And COM makes something 
special related to message loops internaly. The same for Java. Because 
in java the UI will be executed in it's own thread.

Hopefully this will help to solve your problem.
Regards
Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to