Solved

Handle to the window with the Focus  - Windows CE

Posted on 2000-03-01
1
918 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Handling string inputs in C/Linux 23 168
mixString challenge 36 98
modThree challenge 4 64
Fibonacci challenge 11 84
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now