<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>vtkPointPicker in MFC dialog window</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hi vtk users!</FONT>
<BR><FONT SIZE=2 FACE="Arial">I am using vtkWin32OpenGLRenderWindow as a part of a MFC dialog window to visualise my data. I have searched this forum and found some information on how to intercept the messages from mouse movement, mouse click etc. and found some information, but I still cant get it to work in a desirable way. What I want to do is to override the vtk interactor if "picking mode" has been selected and if not I want to use the vtk interactor to zoom and rotate my object.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">It works fine if I set the window id of the render window to the m_hWnd of the dialog like this:</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">RenderWindow->SetWindowId(m_hWnd);</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">But when I do it like that, the render window takes over the entire dialog and all my buttons and other GUI-stuff ends up on top of the render window and that's not what I want... I would rather just set the parent id of the render window to the dialogs m_hWnd, like this:</FONT></P>
<P><FONT SIZE=2 FACE="Arial">RenderWindow->SetParentId(m_hWnd);</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">The problem is that I cant find a way to override the interactor when I do it like that. If I place the mouse pointer over the area used by the render window the vtk interactor takes over. And I don't want to disable the interactor, since I want to use the picker.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">If I have been unclear in explaining the problem, please tell me so that I can make a better one! :)</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Thanks in advance!</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">/Erik</FONT>
</P>
<BR>
<P><FONT SIZE=2 FACE="Arial">###########################################<BR>
<BR>
This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.<BR>
For more information, connect to <A HREF="http://www.F-Secure.com/" TARGET="_blank">http://www.F-Secure.com/</A></FONT>
</P>
</BODY>
</HTML>