🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#8349
From: Remy Lebeau (TeamB)
Date: Mon, 01 Nov 2004 23:39
18 lines
1572 bytes
"Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?Borland%20Newsgroup> wrote
in message news:4186c388$1@newsgroups.borland.com...

> I have tried to catch them with Application->OnMessage=...

That will not work.  The OnMessage event only catches posted messages via
PostMessage().  The messages in question are not posted at all, they are
sent via SendMessage() instead.  You need to override your form's WndProc()
method, or use a MESSAGE_MAP, to catch the messages.

> In the help file, it says that this event handler does not
> handle messages sent using the SendMessage function.

Correct.


Gambit
Technical Details
Message-ID: <4186c8dd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4186b4ba$1@newsgroups.borland.com> <4186b6d1$1@newsgroups.borland.com> <4186c388$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4186b4ba$1@newsgroups.borland.com> <4186b6d1$1@newsgroups.borland.com> <4186c388$1@newsgroups.borland.com>
Subject: Re: Allowing app to close when system asks, but prompt for user
Date: Mon, 1 Nov 2004 15:39:12 -0800
Lines: 20
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: <4186c8dd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099352285 68.69.17.41 (1 Nov 2004 15:38:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail