Article View: borland.public.cppbuilder.nativeapi
Article #1367Re: How to determine active edit control in Windows API
From: Remy Lebeau (TeamB)
Date: Tue, 04 Sep 2007 18:56
Date: Tue, 04 Sep 2007 18:56
19 lines
1384 bytes
1384 bytes
"Renald Yazmir" <renald@partmaker.com> wrote in message news:46dda78f@newsgroups.borland.com... > I am using Windows API. I have 2 edit controls in the dialog box. Is it a dialog that you created yourself, or is it a dialog in another thread/process? > I tried GetFocus() unsuccessfully GetFocus() only works if the calling thread is the same thread that is running the dialog, or if the calling thread has attached itself to the dialog's thread via AttachThreadInput(). Have you tried GetActiveWindow() yet? Gambit
Technical Details
Message-ID:
<46ddaa5f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46dda78f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d9430da384cdfa71 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46dda78f@newsgroups.borland.com> Subject: Re: How to determine active edit control in Windows API Date: Tue, 4 Sep 2007 11:56:04 -0700 Lines: 21 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: 75.83.29.61 Message-ID: <46ddaa5f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1188932191 75.83.29.61 (4 Sep 2007 11:56:31 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail