<DIV>hi,vtkusers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I restruct 3D CT,and render it on MFC dialog.I extract a reslice using vtkImageReslice ,and then render it on the same dialog.I could see the two ones in the dialog at the sanme time,but when I close the window there is vtkoutputWindow and qiuckly disappear. Could anyone help me ? thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;render = vtkRenderer::New();<BR>&nbsp;render-&gt;SetBackground(0.1,0.2,0.4);</DIV>
<DIV>&nbsp;renWin = vtkRenderWindow::New();<BR>&nbsp;renWin-&gt;AddRenderer(render);<BR>&nbsp;iren = vtkRenderWindowInteractor::New();<BR>&nbsp;iren-&gt;SetRenderWindow(renWin);</DIV>
<DIV>render-&gt;AddVolume(newvol);</DIV>
<DIV>&nbsp;</DIV>
<DIV>void CVTK::VTKToDialog(CStatic * aStatic)<BR>{<BR>&nbsp;CRect rect;<BR>&nbsp;aStatic-&gt;GetClientRect(&amp;rect);<BR>&nbsp;renWin-&gt;SetSize(rect.Width(),rect.Height());<BR>&nbsp;renWin-&gt;SetParentId(aStatic-&gt;m_hWnd);<BR>&nbsp;renWin-&gt;Render();&nbsp;&nbsp;&nbsp; <BR>}<BR>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards,</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mexiao<BR><BR></DIV><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://512.mail.163.com/mailstamp/stamp/dz/activity.do?from=footer">穿越地震带 纪念汶川地震一周年</a>
</span>