Article View: borland.public.cppbuilder.nativeapi
Article #12430Find main window
From: nicolasr
Date: Thu, 04 Dec 2003 00:26
Date: Thu, 04 Dec 2003 00:26
13 lines
1147 bytes
1147 bytes
Hi, does anyone know if there is a way to find the main window for a running application if the caption is not known ahead? I want to close several programs from my app. Given the process IDs I could filter out which windows belong to a given program. But I would like to only send WM_CLOSE to the main window. thanks, Nick
Technical Details
Message-ID:
<3fce7f27$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,74436598b6953f9a,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-03 16:40:08 PST From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Find main window Date: Thu, 4 Dec 2003 01:26:14 +0100 Lines: 15 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.176.75 Message-ID: <3fce7f27$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070497575 80.133.176.75 (3 Dec 2003 16:26:15 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail