🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: My app closes, but cancels Windows shutdown?

#2297
From: A Nonymous
Date: Fri, 09 Mar 2007 21:37
20 lines
2104 bytes
This is great stuff, very enlightning..

I found the dumb typo (= instead of == in the comparison) and what do you 
know the HWND for the TApplication is not the same as the HWND of the 
TFormMain.  Dumb mistake. :)

I re read my docs and saw the statement about all top level windows... I 
don't know why my brain interprited that as all main forms...

I modified my fake shutdown utility to list all window handles before 
sending the terminate to the main form.  Wow!  I had 635 handles before the 
shutdown, and after the shutdown there were 439.  I was amazed to see that 
my app had 200 window handles.

Now I just have to figure out this example code for tracing the messages. 
In concept I understand it, but I need to figure out how to implement it in 
my app.  I just hope when I finally find the component it is one that I 
have the source for.

I really appreciate the help and want to thank all who contributed.
Technical Details
Message-ID: <Xns98EE9F12960D1anonymoushotmailcom@207.105.83.66>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!volia.net!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com> <Xns98EDAC20DAA4Eanonymoushotmailcom@207.105.83.66> <45f095bf$1@newsgroups.borland.com> <45f0a594@newsgroups.borland.com> <45f0a77f$1@newsgroups.borland.com> <45f0d6c1@newsgroups.borland.com> <Xns98EE722D896C6anonymoushotmailcom@207.105.83.66> <45f1a96b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,346f60f70c29a156
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: My app closes, but cancels Windows shutdown?
From: A Nonymous <anonymous@hotmail.com>
References: <Xns98ED90968E734anonymoushotmailcom@207.105.83.66> <45f07307@newsgroups.borland.com> <Xns98ED988E421A8anonymoushotmailcom@207.105.83.66> <45f08f8f$1@newsgroups.borland.com> <Xns98EDAC20DAA4Eanonymoushotmailcom@207.105.83.66> <45f095bf$1@newsgroups.borland.com> <45f0a594@newsgroups.borland.com> <45f0a77f$1@newsgroups.borland.com> <45f0d6c1@newsgroups.borland.com> <Xns98EE722D896C6anonymoushotmailcom@207.105.83.66> <45f1a96b$1@newsgroups.borland.com>
Message-ID: <Xns98EE9F12960D1anonymoushotmailcom@207.105.83.66>
User-Agent: Xnews/5.04.25
NNTP-Posting-Host: 74.254.162.162
Date: 9 Mar 2007 13:37:39 -0800
X-Trace: newsgroups.borland.com 1173476259 74.254.162.162 (9 Mar 2007 13:37:39 -0800)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!volia.net!news2.volia.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail