🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IExplorer and DestroyWindow

#8693
From: Bob Gonder
Date: Mon, 27 Sep 2004 17:49
9 lines
1325 bytes
Andrea Cremonini wrote:

>I use ShellExecute to execute IExplorer and then FindWindow to get 
>handle of IE.
>Then with this handle I may iconify or move IE, but when I try to close 
>IE with DestroyWindow, system return an error that "Handle is not 
>valid". How can I close IE window?

You might try sending the handle a WM_CLOSE instead.
Technical Details
Message-ID: <tekgl01a80hijmcfsm3qsccsvl465jpg09@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4158261c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c051890f43130adc
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: IExplorer and DestroyWindow 
Date: Mon, 27 Sep 2004 10:49:35 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <tekgl01a80hijmcfsm3qsccsvl465jpg09@4ax.com>
References: <4158261c@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.41.125.229
X-Trace: newsgroups.borland.com 1096307374 65.41.125.229 (27 Sep 2004 10:49:34 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail