<DIV>How can I catch VTK mouse events in my parent window which is in C# or managed C++? At the moment vtk catches all the event but I want my parent window to catch the events. I've tried disabling the event handling in the interactor style; although the events were not fired by VTK&nbsp;anymore but still I can't receive events in my parent window.</DIV>
<DIV>I've been told a few ways to sort this out but I don't know which way is the best.</DIV>
<DIV>Here are some candidate solutions</DIV>
<DIV>&nbsp;</DIV>
<DIV>1- customising wnd_proc function&nbsp;and&nbsp;on receiving the favourite message take necessary action such as notifying the parent window that message was received.</DIV>
<DIV>&nbsp;</DIV>
<DIV>2- subclassing InteractorStyle. </DIV>
<DIV>3- passing a callback function pointer to vtkObserver.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Because I'm writing my application in managed code and using an unmanaged library, all the above solutions will be difficult to implement.&nbsp; They&nbsp;need converting managed object to unmanaged and in one case it involves converting a delegate(.Net type) to function pointer (unmanaged c++ type) and vice versa.&nbsp;(oou la la)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I was wondring if anyone had faced this problem before or have any opinion to sort this out. I still think there is an easier solution like passing the parent window's handler (hwnd) to vtk so any events can be caught in parent window.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any help is appreciated in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><p>
                <hr size=1> <font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://uk.rd.yahoo.com/evt=21626/*http://uk.messenger.yahoo.com"><strong><font face="Arial, Helvetica, sans-serif">ALL-NEW 
Yahoo! Messenger</font></strong></a><font face="Arial, Helvetica, sans-serif"><strong> 
- all new features - even more fun!</strong></font><strong><font color="#FF9900"> 
</font></strong></font>