[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [platform-swt-dev] Listen for native windows events?
- From: Felipe Heidrich <Felipe_Heidrich@xxxxxxxxxx>
- Date: Fri, 20 Aug 2010 13:03:59 -0400
- Delivered-to: email@example.com
We don't really support this kind of usage,
But you can try to subclass the Composite you are using as parent and
overwrite the method:
int /*long*/ windowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam,
int /*long*/ lParam)
Test if msg equals to the message you sending from your c++ win32 app.
Don't forget to call super or nothing will work.
Note that you will need a separate jar for 64bits arch (just like SWT),
where all int /*long*/ as replaced by long /*int*/.
Good luck (and please use the newsgroup for future user questions).
Andrew Sealy-Bell <andyamsterdam2003@xxxxxxxxx>
20/08/2010 11:48 AM
[platform-swt-dev] Listen for native windows events?
I'd like to listen for native windows events in my SWT application. I've
seen some OS. methods that look like they might do the job but are there
any examples around that show this functionality? all I really want is to
::SendMessage() from my C++ Win32 application to the parent window (which
is an SWT Composite). I just want to pick up the message and do something
with it, any ideas? I don't really want to have to resort to implementing
JMS from C++ to Java or anything like that..
platform-swt-dev mailing list