[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Handle to the window with the Focus  - Windows CE

Posted on 2000-03-01
1
Medium Priority
?
989 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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