Article View: borland.public.cppbuilder.nativeapi
Article #8956How to find and close an external window?
From: Mentor
Date: Sat, 21 Aug 2004 22:38
Date: Sat, 21 Aug 2004 22:38
16 lines
1285 bytes
1285 bytes
Hi, I would like to find a window and close it while my application is running.Is it possible with this code that i find : http://www.swissdelphicenter.ch/torry/showcode.php?id=327 He implement FindWindowByTitle(..) and SendMessage(hIExplorer, WM_SYSCOMMAND, SC_CLOSE, 0); to close the window. My Delphi knowledge is very weak and i'm not sure, if it will be useful for me.If it will be useful, could you help me to convert it to BCB please? Any idea? Mentor
Technical Details
Message-ID:
<4127cece$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,877bf636df2801ef,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mentor" <Mentor@NoSpam.com> Sender: "Mentor" <Mentor@NoSpam.com> Reply-To: "Mentor" <Mentor@NoSpam.com> Subject: How to find and close an external window? Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 81.215.250.129 NNTP-Posting-Host: 207.105.83.66 Message-ID: <4127cece$1@newsgroups.borland.com> Date: 21 Aug 2004 15:38:06 -0700 X-Trace: newsgroups.borland.com 1093127886 207.105.83.66 (21 Aug 2004 15:38:06 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!zen.net.uk!dedekind.zen.co.uk!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail