Article View: borland.public.cppbuilder.nativeapi
Article #12433Re: Find main window
From: nicolasr
Date: Thu, 04 Dec 2003 02:26
Date: Thu, 04 Dec 2003 02:26
24 lines
1941 bytes
1941 bytes
thanks Remy for your reply. The main reason why I'm asking for the main window is for example because of programs like BCB. BCB has usually more than one top level window opened. When I close BCB by hand it seems to remember which windows were open at that time (f.e. Project Manager). The next time I start BCB all these windows are automatically opened again. When I simply would send WM_CLOSE to all windows the Project Manager could be closed before the main window. That would mean that when BCB is started the next time it would not be in the same state as it was the last time. What I'm actually looking for is something like simulating a right-click in the task bar to close an application. For BCB there is only one button in the task bar. Closing it this way always seems to send WM_CLOSE only to its main window thereby leaving all other windows untouched. thanks, Nick
Technical Details
Message-ID:
<3fce9b5b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fce7f27$1@newsgroups.borland.com> <3fce8c75$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,74436598b6953f9a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-03 18:36:20 PST From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fce7f27$1@newsgroups.borland.com> <3fce8c75$1@newsgroups.borland.com> Subject: Re: Find main window Date: Thu, 4 Dec 2003 03:26:34 +0100 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 80.133.178.151 Message-ID: <3fce9b5b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070504795 80.133.178.151 (3 Dec 2003 18:26:35 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail