[vtkusers] Destroying a vtkWin32OpenGLRenderWindow

David Cole david.cole at kitware.com
Mon Aug 4 10:57:26 EDT 2008


Send some code demonstrating your use of the vtkRenderWindow. Usually, the
default vtkRenderWindowInteractor will take care of closing the render
window when the user clicks on the close "x"...
Maybe you have a custom interactor that is not handling everything that the
default one does?


On Fri, Aug 1, 2008 at 6:19 PM, Phil Goddard <philgoddard at telus.net> wrote:

>
> I'm creating a vtkWin32OpenGLRenderWindow via a call to vtkRenderWindow
> without passing in a HWND so that a "default" window is created.
> However the close button (the X in the top right hand corner) doesn't seem
> to be hooked up.
>
> There is some code in the MessageProc method that uses WM_DESTROY, however
> this never gets called.
>
> Is this expected behaviour?
> Is there a simple way to get a render window created in this way to be
> destroyed when the close button is pressed?
>
> Thanks
> Phil.
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080804/c69043e7/attachment.htm>


More information about the vtkusers mailing list