🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IExplorer and DestroyWindow

#8695
From: Andrea Cremonini
Date: Mon, 27 Sep 2004 18:24
24 lines
1478 bytes
Bob Gonder wrote:

>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.
>
>
>  
>
Hi,
ok, I tryed with PostMessage and now all is fine.
Thank you

Andrea
Technical Details
Message-ID: <41585ad9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4158261c@newsgroups.borland.com> <tekgl01a80hijmcfsm3qsccsvl465jpg09@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c051890f43130adc
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 27 Sep 2004 20:24:29 +0200
From: Andrea Cremonini <andrea@jpolis.com>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: IExplorer and DestroyWindow 
References: <4158261c@newsgroups.borland.com> <tekgl01a80hijmcfsm3qsccsvl465jpg09@4ax.com>
In-Reply-To: <tekgl01a80hijmcfsm3qsccsvl465jpg09@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.208.60.202
Message-ID: <41585ad9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096309465 81.208.60.202 (27 Sep 2004 11:24:25 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail