🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Detecting windows shudtown.

#5797
From: Heinrich Wolf
Date: Sat, 02 Jul 2005 20:23
20 lines
1283 bytes
>> No.  To do that, you need to intercept the WM_QUERYENDSESSION message
>> directly.
>>
>>
>> Gambit
>>
>>
>
> I have intercepted it using the WndProc of the main form
> but nothing happens. is there something wrong with that?

This is how to create the event handler:
type
  TMainForm =
    class(TForm)
...
    private
      procedure       QueryEndSession(var Msg : tMessage); message 
wm_QueryEndSession;
    end;
Technical Details
Message-ID: <3iobdaFmibp5U1@individual.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <42c4f6c9$1@newsgroups.borland.com> <42c50d9b$2@newsgroups.borland.com> <42c5edce$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6f249ce41ad1dc44
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: "Heinrich Wolf" <invalid@invalid.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Detecting windows shudtown.
Date: Sat, 2 Jul 2005 22:23:06 +0200
Lines: 22
Message-ID: <3iobdaFmibp5U1@individual.net>
References: <42c4f6c9$1@newsgroups.borland.com> <42c50d9b$2@newsgroups.borland.com> <42c5edce$1@newsgroups.borland.com>
X-Trace: individual.net eqrForXo79JnebymcXRVagNRg6HdirtNsa2AzhRj3eDx8pDX7h
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response