🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: IE is WindowActive or not?

#8686
From: Safari
Date: Sat, 25 Sep 2004 14:04
28 lines
1535 bytes
Thanks Nicolasr,

{
   char wClass[255];
   GetClassName(GetActiveWindow, wClass, sizeof(wClass));
   if (wClass == "IEFrame")
   // Continue...
}

Error!
Retirn me ASCII character!
Safari

"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
news:4150d293@newsgroups.borland.com...
| 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
Technical Details
Message-ID: <41574660@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4150d030@newsgroups.borland.com> <4150d293@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: "Safari" <Safari@alloymail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4150d030@newsgroups.borland.com> <4150d293@newsgroups.borland.com>
Subject: Re: IE is WindowActive or not?
Date: Sat, 25 Sep 2004 18:34:40 +0430
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.191.1.7
Message-ID: <41574660@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096238688 80.191.1.7 (26 Sep 2004 15:44:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail