[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Listen for native windows events?

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).
Felipe





From:
Andrew Sealy-Bell <andyamsterdam2003@xxxxxxxxx>
To:
platform-swt-dev@xxxxxxxxxxx
Date:
20/08/2010 11:48 AM
Subject:
[platform-swt-dev] Listen for native windows events?
Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx



Hi,

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..

Regards,

Andrew._______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev