[vtkusers] how to quit VTK when close the MFC single dialog ?

zhq 15891495523 at 126.com
Fri Apr 24 07:27:42 EDT 2015


I am learning coding VTK based on the MFC single dialog ? And it's ok for me
to read a picture in MFC dialog. But after I close the dialog, I find the
exe is still survived in the computer progress. So how can I quit the VTK
after I close the dialog ?

My code is :

m_pImageViewer->SetInputData(m_pImageData);
m_pImageViewer->SetParentId(GetDlgItem(IDC_STATIC)->m_hWnd);
m_pImageViewer->SetupInteractor(m_pRenderWindowInteractor);	
m_pImageViewer->SetSize(rect.Width(),rect.Height());
m_pRenderWindowInteractor->Render();
m_pImageViewer->Render();
m_pImageViewer->GetRenderer()->ResetCamera();
m_pRenderWindowInteractor->Start();



--
View this message in context: http://vtk.1045678.n5.nabble.com/how-to-quit-VTK-when-close-the-MFC-single-dialog-tp5731600.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list