<DIV><FONT face="times new roman" size=3>Hi, </FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>I got some problems with handling interaction between MFC interface and vtkRenderWindow.</FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>The main problem that I have, lies in the fact that <STRONG>my render window is just a small part of my MFC window (CView</STRONG>). Indeed, when left button mouse is pressed in the MFC window, my function renderWindow->SelectPoint() is called only when clicked point is not in the render window. I checked out if my interactor size was set to correct dimensions and it is actually the case. But I can't figure out why my function is called only when I clicked outside the render window. </FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>- Maybe the origin of the problem is that I am missing something with <STRONG>SetParentId</STRONG>, <STRONG>SetWindowId</STRONG> and so on... </FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>Most of the examples that I read deal with a vtkRenderWindow's size the same than CView's size: in this case, <STRONG>myRenderWindow->SetParentId(this->h_Wnd)</STRONG> seems to fit exactly. </FONT></DIV>
<DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>Here is what I did: </FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3> <STRONG>// setup the parent window<BR> myRenderWindow->SetParentId(this->m_hWnd);<BR> myRenderWindow->WindowInitialize();</STRONG></FONT></DIV>
<DIV><FONT face="times new roman" size=3><STRONG></STRONG></FONT> </DIV>
<DIV><FONT face="times new roman" size=3><STRONG> CRect rect;<BR> GetDlgItem(IDC_RECT)->GetWindowRect(rect);<BR>myRenderWindow->SetPosition(rect.left,rect.top);<BR>myRenderWindow->SetSize(rect.Width(),rect.Height());</STRONG></FONT></DIV></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>- Now, I saw an example where: </FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><STRONG><FONT face="times new roman" size=3>HWND hWndRenderer = ::CreateWindowEx(WS_EX_CLIENTEDGE, OCT3DRENDERCLASS, NULL, WS_CHILD|WS_VISIBLE|WS_TABSTOP, 7, 7, nWidth, nHeight, m_hWnd, NULL, AfxGetInstanceHandle(), NULL);</FONT></STRONG></DIV>
<DIV><STRONG><FONT face="times new roman" size=3> </FONT></STRONG></DIV>
<DIV><STRONG><FONT face="times new roman" size=3> myRenderWindow->SetParentId(hWndRenderer);</FONT></STRONG></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>Does someone try this kind of thing? Do you think this could be the solution? Or maybe someone has <STRONG>examples where, like me, the render window is just a part of a MFC window</STRONG>.</FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>- Or, maybe, my problem comes from somewhere else: timer, interactor->Start()... because after a while everything works fine.</FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>I hope someone can help me.....</FONT></DIV>
<DIV><FONT face="times new roman" size=3></FONT> </DIV>
<DIV><FONT face="times new roman" size=3>Isabelle</DIV></FONT>
<DIV><FONT face="times new roman" size=3></FONT> </DIV><p>
                <hr size=1>
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br>
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>