🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Windows End Session message

#4904
From: Joanne
Date: Fri, 11 Nov 2005 10:20
19 lines
1678 bytes
Depending on where 
>exactly you are intercepting the message in the first place, you need to 
>call either the TForm::WndProc() or TForm::Dispatch() method instead.

Thanks for the answer. I was basing my code on an example in Borland help!

I have declared the handler in my main form class as follows, (based on the same example):

protected:
    void __fastcall WMEndSession(TWMEndSession &Message);
    BEGIN_MESSAGE_MAP
        MESSAGE_HANDLER(WM_ENDSESSION, TWMEndSession, MEndSession)
    END_MESSAGE_MAP(TForm)

Is this correct? What should I now call from within WMEndSession?  Or should I override WndProc?

Thanks,
Joanne
Technical Details
Message-ID: <43747e60$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43732706$1@newsgroups.borland.com> <4373911d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e6c2b984611dcd0b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Joanne" <jo.bullock@tiscali.co.uk>
Sender: "Joanne" <jo.bullock@tiscali.co.uk>
Reply-To: "Joanne" <jo.bullock@tiscali.co.uk>
Subject: Re: Windows End Session message
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.47.84.168     
References: <43732706$1@newsgroups.borland.com> <4373911d$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43747e60$1@newsgroups.borland.com>
Date: 11 Nov 2005 03:20:00 -0700
X-Trace: newsgroups.borland.com 1131708000 207.105.83.66 (11 Nov 2005 03:20:00 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail