Title: myOffice Email Message
[Reply]

HI All,

Thanks Alan.

I put a handler for the WM_QUERYENDSESSION message that set the Message result to 1.

Voila!

cheers

gary

At 10:10 on 10/05/2006 you wrote

>To : [email protected]

>CC :

>From: Alan Rose, [EMAIL PROTECTED]

>Content Type: text/html

>Attached:

>

>This is a multi-part message in MIME format.

>

>

>

>

>

>I had a similar problem once. The program was running in a user

>controlled loop so I had to a check in the loop for

>Application.terminated to break out of it.

>The other thing to watch out for is if your handling of windows messages

>internally in code. Make sure Windows can close your app.

>

>

>

>________________________________

>

>    From: [EMAIL PROTECTED]

>[mailto:[EMAIL PROTECTED] On Behalf Of Gary T. Benner

>    Sent: Wednesday, 10 May 2006 9:46 a.m.

>    To: [email protected]

>    Subject: [DUG] Trayicon App doesn't want to allow PC to close

>    

>    

>    HI all,

>

>    Quiet day so far.

>

>    I've a small app that runs in the System Tray, but doesn't seem

>to allow the PC to shutdown. Close the app and the PC closes OK.

>

>    Any ideas ....

>

>    cheers

>

>    Gary

>

>    

>

>________________________________

>

>Gary Benner     

>e-Engineer, Lecturer, and Software Developer    

>

>123 Internet Limited <http://www.123.co.nz>     

>Waiariki Institute of Technology <http://www.waiariki.ac.nz>     

>Sunshine Garden Bag Co. <http://www.sunshinebags.co.nz>     

>Sommnet.com Limited <http://www.sommnet.com>     

>Mob: 021 966 992    

>Email: [EMAIL PROTECTED]     

>

>

>    Ref#: 41006

>    

>    

>

>

>

>

>_______________________________________________

>Delphi mailing list

>[email protected]

>http://ns3.123.co.nz/mailman/listinfo/delphi

>



Gary Benner
e-Engineer, Lecturer, and Software Developer
123 Internet Limited
Waiariki Institute of Technology
Sunshine Garden Bag Co.
Sommnet.com Limited
Mob: 021 966 992
Email: [EMAIL PROTECTED]


Ref#: 41006

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to