[DUG] Trayicon App doesn't want to allow PC to close
Gary T. Benner
gary at 123.co.nz
Wed May 10 10:26:09 NZST 2006
[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 : delphi at ns3.123.co.nz
>CC : >From: Alan Rose, Alan at seabed.co.nz
>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: delphi-bounces at ns3.123.co.nz
>[mailto:delphi-bounces at ns3.123.co.nz] On Behalf Of Gary T. Benner
> Sent: Wednesday, 10 May 2006 9:46 a.m.
> To: delphi at delphi.org.nz
> 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: gary at 123.co.nz
>
>
> Ref#: 41006
>
>
>
>
>
>
>_______________________________________________
>Delphi mailing list
>Delphi at ns3.123.co.nz
>http://ns3.123.co.nz/mailman/listinfo/delphi
>
Ref#: 41006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20060510/2442ab71/attachment.html
More information about the Delphi
mailing list