Windows shutdown. Get App to notice difference between close and shutdown
"arcadeukcom" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <[email protected]> |
Hi,
When my app is closed (cross clicked) it displays a dialog box asking
whether you want to close or send app to standby
When windows shuts down, this dialog box pops up and windows
displays "program not responding"
I need my onCloseQuery procedure to notice the difference between the
app closing and windows shutting down, so it can not display the
dialog box if windows is shutting down.
I have tried to use the following as an external procedure :-
procedure TMainForm.WMEndSession(var Msg: TWMEndSession);
begin
if Msg.EndSession = TRUE then
ShowMessage('Windows is shutting down ' + #13 + 'at ' +
FormatDateTime('c', Now));
inherited;
end;
This, and other variations of trying to read the windows message
don't work as the app seems to ignore this section of code and just
does the stuff in the onCloseQuery procedure
Unfortunatly I can't debug an application when windows is shutting
down so this is being very difficult
Thanks in advance for any help you can provide
Kind Regards
Luke Wells
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Coral Calcium for Greater Health. 1 month supply - $23.95
(1 bottle, 90 tablets, 400mg each with Magnesium & Vitamin D)
http://www.challengerone.com/t/l.asp?cid=2805&lp=calcium2.asp
http://us.click.yahoo.com/mcIe3D/v9VGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->
CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
---------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/