How to Get Focus Window handle?

Similar to the PocketPC forum, the Smartphone forum focuses on topics related to the Smartphone development.
[C++ development]

Moderators: Teksoft, admin

How to Get Focus Window handle?

Postby yulincat » Wed Sep 06, 2006 11:49 am

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?
yulincat
TEK-Newbie
TEK-Newbie
 
Posts: 7
Joined: Fri Jun 23, 2006 7:42 am

Postby radhoo » Wed Sep 06, 2006 1:23 pm

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.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am


Return to Smartphone

Who is online

Users browsing this forum: No registered users and 1 guest


cron