?
Solved

Handle to the window with the Focus  - Windows CE

Posted on 2000-03-01
1
Medium Priority
?
1,000 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 400 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Loops Section Overview
Suggested Courses

850 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