I found it isn't supported AttachThreadInput on Windows Mobile, so I can only get owner current thread's focus window handle.
How to get other process/thread's focus window handle?
- It is currently Sun May 19, 2013 9:35 am • All times are UTC + 2 hours
How to Get Focus Window handle?
2 posts
• Page 1 of 1
It would be fair enough to assume that the window-on-top has the keyboard focus. For this assumption, the solution is simple: GetForegroundWindow.
For the general solution I will try to prepare an article, as it requires more then a couple of lines of code, as it needs to interact with other processes memory space.
For the general solution I will try to prepare an article, as it requires more then a couple of lines of code, as it needs to interact with other processes memory space.
- radhoo
- TEK-Insider

- Posts: 640
- Joined: Fri Mar 17, 2006 2:47 am
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
