I am going to make this easy for you, since the last response directed me to 
wxwidgets, where they have "no" answer.

So far, I have determined a few things.

1. MFC includes something called "message reflections". This allows messages 
to its main window to be redirected to child windows, or any other class 
with the appropriate code to handle events. These are passed to that new 
handler "before" the window sees them, then any unhandled ones are passed 
back.

2. wxLua has state information that defines the IDs specific to what 
information its events are tagged with when generated. Not sure what happens 
when you make someone else's window the "parent" of the wxLua objects 
though.

3. There is a function for returning GetEventHandler, which returns the 
event handler being used "by" wxLua to deal with events, which could be your 
own window you just created in the script.

What this seems to mean to me is that a) that handler will correctly handle 
events for any object you add to the window/container, making it unnecessary 
for the hosting application to do anything. This isn't probably likely. If 
not, then b) you create an MFC class that handles events, *reflect* the main 
windows event stream to there, parse the events before they hosting 
applications main window has seen them for anything smelling wxLua like, 
retrieve the handle for the wxLua *events* sink, pass the event you trapped 
on to that, wait for wxLua to do its thing, then mark the event as "handled" 
in the MFC class and exit, returning control back to the main MFC window of 
the host.

Now, anyone have a clue which, (a) or (b) is needed, and more to the point, 
am I completely barking up the wrong tree here?

_________________________________________________________________
The average US Credit Score is 675. The cost to see yours: $0 by Experian. 
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to