|
From: <jc...@fe...> - 2002-05-22 17:06:01
|
Hi,
I received the following message from a plplot user, related with=20
window destruction under ms-win:
---------- Forwarded Message ----------
Subject: graceful exit after window close
Date: Tue, 21 May 2002 14:36:19 -0700
From: Adam Conner-Sax
=2E..
I made a small change to PLplot win3.cpp that seems to
give better behavior when the window is destroyed.
I added a "bool isDead" to WinDev. I set it to true in the init
function.
I set it to false on a WM_DESTROY message
I add a check in the message loop so
"while (!dev->nextPlot) {..."
becomes
"while (!dev->nextPLot && !dev->isDead) {..."
otherwise I get hung up in the message loop after I destroy
the window.
Adam
-------------------------------------------------------
|