🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IE is WindowActive or not?

#8734
From: nicolasr
Date: Wed, 22 Sep 2004 01:17
26 lines
1405 bytes
Hi,

I think you should do it the other way around:

Get the active window, then get its class name
via GetClassName() and check whether this
is "IEFrame".
(There may be more than one IEFrame open
and FindWindow will maybe not return the active
one first)

hth,
Nick

> How can i know IE is ActiveWindow or not?
>
> My code is error...!
> HWND = Active = FindWindow("IEFrame", NULL);
> if (GetActiveWindow == Active)
> {
>   // Continue...
> }
>
> Safari
>
> 
Technical Details
Message-ID: <4150d293@newsgroups.borland.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: <4150d030@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e705c536883f0885
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4150d030@newsgroups.borland.com>
Subject: Re: IE is WindowActive or not?
Date: Wed, 22 Sep 2004 03:17:06 +0200
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.133.187.118
Message-ID: <4150d293@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095815827 80.133.187.118 (21 Sep 2004 18:17:07 -0700)
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