🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7931

Re: Type of Close

#7931
From: Remy Lebeau (TeamB)
Date: Wed, 08 Dec 2004 17:21
13 lines
1303 bytes
"Denville Longhurst" <Denville@metco.co.uk> wrote in message
news:41b6eaca@newsgroups.borland.com...

> Is it possible for my app to detect whether it is being closed by
> the User (in which case I show a confirmation dialogue) or by the
> system (eg on log-off or switch-off) (in which case I would like to
> bypass the confirmation and just let the app close).

Have your form intercept the WM_QUERYENDSESSION message.


Gambit
Technical Details
Message-ID: <41b73a48$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41b6eaca@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,dd739f0a2d0eb141
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <41b6eaca@newsgroups.borland.com>
Subject: Re: Type of Close
Date: Wed, 8 Dec 2004 09:21:49 -0800
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41b73a48$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102527048 68.69.17.41 (8 Dec 2004 09:30:48 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news-hog.berkeley.edu!ucberkeley!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail