Here's an interresting challenge.
As part of the migration process of porting our application from win32 to
java/SWT, it is a requierement that the migration be done progressively.
In other words, the main window of the application will remain win32
while we gradually re-write the child windows with SWT.
Our current approach is to contain SWT shells by first creating them, then
using their window handles and the SetParent WIN32 function to attach them
to our application. So far all seemed well but when the newly created SWT
window has the focus, the main window loses it.
From what I can tell, it's because the Shell object is by default created
as a main window. My question is this, is there a way to create a SWT
shell that would be a child to a WIN32 main window?
I have tried several things, but I can't seem to find a way to construct a
Shell and giving it a WIN32 window handle as a parent.
Is there a way to do that? or to do something that would do the