Solved

Handle to the window with the Focus  - Windows CE

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 90
wordmultiple challenge 12 131
Detect file exist or not 3 154
how to split multiple lines delimiter : 8 97
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

14 Experts available now in Live!

Get 1:1 Help Now