It's simpler than that. If you respond to the Application Main Form's
OnCloseQuery event and refuse to close, by setting CanClose to False, -
then windows won't close either. Once CanClose is True, after your tidy up
function, windows will exit.
Max
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Alistair George
Sent: Sunday, 1 August 1999 19:39
To: Multiple recipients of list delphi
Subject: [DUG]: WM_QUERYENDSESSION
Morning all.
I have a need to complete a tidy-up function before allowing Windows to
close when the user selects Start, Shutdown Windows.
I havent gone down the track of responding to the WM_Q...... message
because
someone might be able to tell me quickly.
If you fiddle with the closure session, does this impair the normal closure
of Windows??
Why I ask is because one of my favourite programs if running when windows
closure is set, will not allow windows to close.
Tks,
Alistair Grant George
mailto:[EMAIL PROTECTED]
Products:
http://v-share.com/~v_bigal/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz