[vtkusers] How to make VTK render window stay on top of MFC App

John Drescher drescherjm at gmail.com
Fri Mar 23 09:50:20 EDT 2012


> I am using vtkMFCRenderView class (available in the vtk examples) to create
> a vtk render window in a MFC application.
> My problem is that when I click another dialog of the app the vtk window
> goes away. (to the background)
> I want to make it appear on top of the application as a modal dialog.
> Please help me.
> Thanks.

Why not encapsulate vtkMFCRenderView in a dialog or other MFC window?
Although I programmed with MFC for a living for 15 years I moved to Qt
when I started developing with VTK in 2008 so I never investigated
this option. I do however do this with Qt/ vtk all the time.

John



More information about the vtkusers mailing list