[vtkusers] Destroying a vtkWin32OpenGLRenderWindow

Phil Goddard philgoddard at telus.net
Fri Aug 1 18:19:53 EDT 2008


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.






More information about the vtkusers mailing list