[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Embedding a Win32 Window?
|
Hi Andrew,
No official support for what you are trying to do.
I think the idea is to create an OLE interface for your program and embed
that in SWT.
You can also see how we embed different elements in SWT Windows, for
example: openGL canvas, awt frame, etc. Maybe you can use the same idea
for your program. To more extreme idea that comes to my mind is to create
a Composite with SWT.EMBEDDED bit, and use low level OS calls to reparent
your window to the composite (see OS.SetParent()) - but this approach will
probably have many problems.
Good luck
Felipe
From:
Andrew Sealy-Bell <andyamsterdam2003@xxxxxxxxx>
To:
platform-swt-dev@xxxxxxxxxxx
Date:
05/08/2010 01:21 AM
Subject:
[platform-swt-dev] Embedding a Win32 Window?
Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx
Hi,
I have a requirement to embed a native Win32 application window inside a
Java window. I am guessing that I need to use a Composite but beyond that
I'm not sure how to achieve this. I am guessing it's similar to embedding
OLE objects(?) but this isn't quite the same. I know it's possible as I
saw a post as I was trawling the net but I can't get the guy to respond
unfortunately.
Any help or advice would be much appreciated. Also, I do need to listen
for mouse events, especially click and text selection if possible. I have
the code for the Win32 app in C/C++ so I can always do some JNI stuff if I
need to propogate events up the chain.
If anybody knows of anyone who's done this before i'd love to discuss how
they did it and have a look at an example.
Regards,
Andrew._______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev