[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Hosting SWT windows inside a WIN32 app
|
Yes, if you mean "dialog child", then use the constructor "new Shell
(Shell)". If you mean "MDI child", then this is not supported in SWT.
I'm not sure what the original problem is. It should be easy enough to mix
SWT and native code. Can you give a better description, or even better,
some I can run code?
"Yannick Grosjean" <rickkhunter@xxxxxxxxxxx> wrote in message
news:faaeedb3bcfbe1d1697ab6254a5cb47e$1@xxxxxxxxxxxxxxxxxx
> 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
equivalent?
>
> Yannick Grosjean
> Solutuons JetSoft
>