🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to Ignore WM_QUERYENDSESSION

#964
From: Asger Joergensen
Date: Thu, 22 Nov 2007 11:24
27 lines
1474 bytes
Hi Paul 
 
 Paul says:
> Hi 
> 
> I have tried using the BEGIN_MESSAGE_MAP and overing the WndProc
> approach. Unless Message.Result is set to true when handling the
> WM_QUERYENDSESSION message the session log off is terminated as
> expected from the MS Documentation.
> 
> What I am missing is how to **ignore** this message

I think this means that if You have this line: 

TSomething::Dispatch((void*)&Msg);

in Your message map do this:

//TSomething::Dispatch((void*)&Msg);
 
> and **call the default windows procedure on these messages**

I dont know about this part

Kind regards
Asger
Technical Details
Message-ID: <MPG.21af8568b3c1fba79898fd@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <474529f6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,82d0c9e28c8f059
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Asger Joergensen <junk@Asger-P.dk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to Ignore WM_QUERYENDSESSION
Date: Thu, 22 Nov 2007 12:24:43 +0100
Message-ID: <MPG.21af8568b3c1fba79898fd@newsgroups.borland.com>
References: <474529f6@newsgroups.borland.com>
Organization: Asger-P
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: 83.73.201.25
X-Trace: newsgroups.borland.com 1195730680 83.73.201.25 (22 Nov 2007 03:24:40 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail