Article View: borland.public.cppbuilder.nativeapi
Article #7806Re: WM_CLOSE, WM_DESTROY problem
From: Remy Lebeau (TeamB)
Date: Mon, 20 Dec 2004 19:00
Date: Mon, 20 Dec 2004 19:00
22 lines
1914 bytes
1914 bytes
"PaoloItaly" <paolot@FAKETHESPAMMERsirius-es.it> wrote in message news:41c6e166@newsgroups.borland.com... > Closing my application from the main window (PostQuitMessage(0)) > no event are sended at child windows. Calling PostQuitMessage() posts a WM_QUIT message to the message queue, which causes the queue to exit. There is no further message handling performed for the application after that, because there is no queue available to handle it anymore. > I've to take trace of opened windows myself and then call DestroyWindow, > or there is a built-in Windows method to do this job ? What exactly are you trying to accomplish in the first place? Why do your child forms need to receive the messages? The VCL does not need those messages in order to clean up after itself, which makes me think that you have custom code that requires those messages when it really doesn't. Gambit
Technical Details
Message-ID:
<41c72125$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41c6e166@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7d205b36418f01bf X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41c6e166@newsgroups.borland.com> Subject: Re: WM_CLOSE, WM_DESTROY problem Date: Mon, 20 Dec 2004 11:00:38 -0800 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41c72125$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103569189 68.69.17.41 (20 Dec 2004 10:59:49 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail