Solved

Handle to the window with the Focus  - Windows CE

Posted on 2000-03-01
1
943 Views
Last Modified: 2013-11-20
I want to get the handle of the window
with focus ie the window with keyboard
focus. I know that it is possible
using
GetForegroundWindow,
GetWindowThreadProcessId, AttachThreadInput,
GetFocus....
But I don't to use AttachThreadInput
because this API is not supported on
Windows CE. So I want to find a alternate way.

0
Comment
Question by:arunmk
1 Comment
 
LVL 5

Accepted Solution

by:
Wyn earned 100 total points
ID: 2575429
Directions:
1:Make a dll;
2:Hook it into the target Thread gotten by GetForegroundWindow and GetWindowThreadProcessId;
3:In the DllMain ,if hook handle is valid , Call GetFocus()...

Regards
W.Yinan
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tab names are off by one 5 54
Fibonacci challenge 11 133
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 104
how to split multiple lines delimiter : 8 110
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question