Article View: borland.public.cppbuilder.nativeapi
Article #16027Re: log off/ application terminate
From: Duane Hebert
Date: Wed, 04 Jun 2003 13:26
Date: Wed, 04 Jun 2003 13:26
32 lines
2137 bytes
2137 bytes
"Eudy Carvalhaes C. Silva" <eudy@iae.cta> wrote in message news:3EDDE16A.5030506@iae.cta... > That's what it seems. > > I made a small app using Duane's code and the dtor > is called when closing the main form, but it is not > called if the app is running and I log off (Win98SE > here). > > Then a "message mapped" WM_QUERYENDSESSION and coded > in the handler: > Message.Result = true; > Close(); > > For this handler things are inverted: the handler is not > called when normal closing the app but it is called when > the app is running and the user logs off. > > I haven't tested under XP/2k. I'm running under Win2K Pro. I haven't tested to the extent that you have but my results are effectively the same. I will look into Remy's suggestion using the OnCloseQuery event but I have to say that this is pretty disheartening. I also have to say though that you guys are amazing. You all have full time jobs and find the time to spend with a problem like this. Thanks Remy, Eudy, Ed! With the way that Borland handles user support, if it wasn't for these groups...
Technical Details
Message-ID:
<3eddf36a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3edccd80@newsgroups.borland.com> <3EDD5EE0.9060804@fake.com> <3edd66d9$1@newsgroups.borland.com> <3edd6c58$1@newsgroups.borland.com> <3EDDE16A.5030506@iae.cta>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,f4b8abe1a2fab575 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-04 06:34:19 PST From: "Duane Hebert" <duane@nitrex.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3edccd80@newsgroups.borland.com> <3EDD5EE0.9060804@fake.com> <3edd66d9$1@newsgroups.borland.com> <3edd6c58$1@newsgroups.borland.com> <3EDDE16A.5030506@iae.cta> Subject: Re: log off/ application terminate Date: Wed, 4 Jun 2003 09:26:02 -0400 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 199.243.88.188 Message-ID: <3eddf36a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1054733162 199.243.88.188 (4 Jun 2003 06:26:02 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail