Article View: borland.public.cppbuilder.nativeapi
Article #976Re: How to Ignore WM_QUERYENDSESSION
From: Paul
Date: Thu, 22 Nov 2007 21:56
Date: Thu, 22 Nov 2007 21:56
15 lines
1253 bytes
1253 bytes
Remy Lebeau (TeamB) wrote: > > > That won't work by itself. All that allows you to do is hook the > messages at the TForm level, but the messages are also handled at the > TApplication level as well. You need to use > TApplication::HookMainWindow() as well. For example: Thanks a lot for that code - as soon as I saw the DefWindowProc the penny dropped. Many thanks for your help - much appreciated cheers Paul
Technical Details
Message-ID:
<4746091b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<474529f6@newsgroups.borland.com> <4745eaa1$1@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: "Paul" <paulm@xacom.com.au> Subject: Re: How to Ignore WM_QUERYENDSESSION Newsgroups: borland.public.cppbuilder.nativeapi References: <474529f6@newsgroups.borland.com> <4745eaa1$1@newsgroups.borland.com> User-Agent: XanaNews/1.18.1.6 NNTP-Posting-Host: 203.5.1.209 Message-ID: <4746091b$1@newsgroups.borland.com> Date: 22 Nov 2007 14:56:27 -0700 X-Trace: newsgroups.borland.com 1195772187 203.5.1.209 (22 Nov 2007 14:56:27 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail