🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to determine active edit control in Windows API

#1368
From: Renald Yazmir
Date: Tue, 04 Sep 2007 20:06
26 lines
1787 bytes
Yes, It is a dialog that I create myself
GetActiveWindow()  returns the HWND of the dialog, not of the edit control.

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:46ddaa5f$1@newsgroups.borland.com...
>
> "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: <46ddacb5@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-mail
References: <46dda78f@newsgroups.borland.com> <46ddaa5f$1@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
Reply-To: "Renald Yazmir" <renald@partmaker.com>
From: "Renald Yazmir" <renald@partmaker.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46dda78f@newsgroups.borland.com> <46ddaa5f$1@newsgroups.borland.com>
Subject: Re: How to determine active edit control in Windows API
Date: Tue, 4 Sep 2007 15:06:23 -0500
Lines: 28
Organization: IMCS Inc
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 66.106.28.123
Message-ID: <46ddacb5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1188932789 66.106.28.123 (4 Sep 2007 12:06:29 -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