🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Keyboard focus other application button

#3357
From: Remy Lebeau (TeamB)
Date: Thu, 29 Jun 2006 17:04
12 lines
1229 bytes
"Eangelo" <eangelo@libero.it> wrote in message
news:44a39bb7@newsgroups.borland.com...

> I am working on a program that needs to know if a certain button
> in another application has currently keyboard focus. Is there an
> API to acheve such a goal?

Use GetForegroundWindow(), AttachThreadInput(), and GetFocus().


Gambit
Technical Details
Message-ID: <44a408b0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44a39bb7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,bfd005a888475708
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44a39bb7@newsgroups.borland.com>
Subject: Re: Keyboard focus other application button
Date: Thu, 29 Jun 2006 10:04:38 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <44a408b0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1151600816 68.69.17.41 (29 Jun 2006 10:06:56 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail