🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Allowing app to close when system asks, but prompt for user

#8351
From: Mark Jacobs
Date: Tue, 02 Nov 2004 01:09
24 lines
1706 bytes
Thankyou very much for this example.
-- 
Mark Jacobs

"Oren Halvani" <NoSpam@fdtd.com> wrote in message
news:4186d785$1@newsgroups.borland.com...
| // in header
|
| protected:
|   BEGIN_MESSAGE_MAP
|      VCL_MESSAGE_HANDLER(WM_QUERYENDSESSION, TMessage, OnQueryEndSession)
|   END_MESSAGE_MAP(TForm)
|   void __fastcall OnQueryEndSession(TMessage & Msg);
|
| // in unit
|
| void __fastcall TForm1::OnQueryEndSession(TMessage &Msg)
| {
|
|   TObject::Dispatch(&Msg);
|   Close();
| }
|
| hope, this will work for you..
Technical Details
Message-ID: <4186de64@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4186b4ba$1@newsgroups.borland.com> <4186b6d1$1@newsgroups.borland.com> <4186c388$1@newsgroups.borland.com> <4186c8dd$1@newsgroups.borland.com> <4186d785$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ed85e305ef3f7bba
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4186b4ba$1@newsgroups.borland.com> <4186b6d1$1@newsgroups.borland.com> <4186c388$1@newsgroups.borland.com> <4186c8dd$1@newsgroups.borland.com> <4186d785$1@newsgroups.borland.com>
Subject: Re: Allowing app to close when system asks, but prompt for user
Date: Tue, 2 Nov 2004 01:09:51 -0000
Lines: 25
Organization: DK Computing
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 81.86.186.94
Message-ID: <4186de64@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099357796 81.86.186.94 (1 Nov 2004 17:09:56 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail