The easiest way in c++ to capture mouse events is to sub-class one of the interactor style classes, i.e. vtkInteractorStyleTrackballCamera. Then simply overwrite its left mouse button click function. If you want to maintain the default vtk controls and just add to them you can grab the source from that function off the cvs and then edit it as you please.<br><br>Sam<br><br><b><i>Jose David Pfuturi Huisa <daviddarkzero@hotmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> <div style=""><div class="RTE"><font size="5">Hello.I am from Peru. I am using MFC with vtk and I have a problem. How I can use the class vtkWin32RenderWindowInteractor to create events with the mouse and the keyboard inside a project MFC.</font></div> <div class="RTE"><font size="5">How I make to work the function <font size="4">OnLButtonDown </font><font size="5">for
example????</font> <table border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="md" nowrap="nowrap" valign="top"><font size="4">vtkWin32RenderWindowInteractor::OnLButtonDown </font></td> <td class="md" valign="top"><font size="4">( </font></td> <td class="md" nowrap="nowrap" valign="top"><font size="4">HWND </font></td> <td class="mdname" nowrap="nowrap"><font size="4"> <em>wnd</em>, </font></td></tr> <tr> <td><font size="4"></font><br></td> <td><font size="4"></font><br></td> <td class="md" nowrap="nowrap"><font size="4">UINT </font></td> <td class="mdname" nowrap="nowrap"><font size="4"> <em>nFlags</em>, </font></td></tr> <tr> <td><font size="4"></font><br></td> <td><font size="4"></font><br></td> <td class="md" nowrap="nowrap"><font size="4">int </font></td> <td class="mdname" nowrap="nowrap"><font size="4"> <em>X</em>, </font></td></tr> <tr> <td><font size="4"></font><br></td> <td><font size="4"></font><br></td> <td
class="md" nowrap="nowrap"><font size="4">int </font></td> <td class="mdname" nowrap="nowrap"><font size="4"> <em>Y</em></font></td></tr> <tr> <td><font size="5">Thank you to all.</font></td> <td class="md"> <div><font size="4">)</font></div> <div> </div></td> <td class="md" colspan="2"><code></code><br></td></tr></tbody></table></font></div> <div class="RTE"><font size="5"> </font></div></div><br clear="all"><hr>Éxitos, grandes clásicos y novedades. <a href="http://g.msn.com/8HMBESES/2755??PS=47575" target="_top">Un millón de canciones en MSN Music. </a> _______________________________________________<br>This is the private VTK discussion list. <br>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers<br></blockquote><br>