detect window destruction

M.Schrijver at el.utwente.nl M.Schrijver at el.utwente.nl
Mon Nov 1 05:11:28 EST 1999


If you wrote your own windows-procedure, you should check for the
WM_CLOSE, or WM_DESTROY messages. You should use the first for e.g.
asking the user if he/she wants to save any data, and the second to free
memory and other resources etc. Normally, both messages are generated
when a user closes a window, in the indicated order.

ir. Marc Schrijver
Faculty of Electrical Engineering (S&S NT)
University of Twente
The Netherlands

> ----------
> From: 	Daphne Yu[SMTP:dyu at bme.jhu.edu]
> Sent: 	Friday, October 29, 1999 1:52 PM
> To: 	vtkusers at gsao.med.ge.com
> Subject: 	detect window destruction 
> 
> 
> 
> 
> hi vtk users,
> 
> i'm wondering what's the best way to detect if a user has closed
> a rendering or image window through the window manager?  i don't
> seem to see an explicit way to check this.  i'm using windows nt
> and c++ with vtk2.4 library.
> 
> tia,
> daphne
> 
> 
> 
> 
> 
> 
> ----------------------------------------------------------------------
> -------
> This is the private VTK discussion list.  Please keep messages
> on-topic.
> Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at gsao.med.ge.com>.  For help, send message body containing
> "info vtkusers" to the same address.     Live long and prosper.
> ----------------------------------------------------------------------
> -------
> 


-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------




More information about the vtkusers mailing list