|
-
Sep 14th, 2008, 08:50 PM
#1
Thread Starter
Member
[RESOLVED] Active Control(?) handles.
G'day guys,
As an example I'll use notepad.
Notepad is easy, it just has the Edit box and we can find its handle via its class.
However, what if notepad had two edit boxes? How can we find which one currently has focus or is active (not sure how it actually works)
I want to go beyond GetForegroundWindow and I want to get more specific, is it possible to differentiate between a few items and grab only the handle of the one with focus?
-
Sep 15th, 2008, 04:16 AM
#2
Thread Starter
Member
Re: Active Control(?) handles.
Browsed through the API list and the only way I can figure this out is to grab the handle of everything I click on and disable tab so users can't tab between controls.
-
Sep 15th, 2008, 06:44 AM
#3
-
Sep 15th, 2008, 07:26 PM
#4
Thread Starter
Member
Re: [RESOLVED] Active Control(?) handles.
Nah, I just found a work around.
The solution in your thread is far better though. Thanks for posting - I did do a search so it is amazing I didn't find it!
-
Sep 15th, 2008, 09:41 PM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|