Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Determine top but unfocused window handle

Posted on 2002-05-08
6
Medium Priority
?
143 Views
Last Modified: 2010-04-04
How can I determine the top window handle but it doesn't have any focus? Like when you have a window open and it has focus and you click on the clock in the tray. It looses focus but it is still the top window on the desktop. Thanx in advance.
0
Comment
Question by:skynergy
6 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6996385
>it has focus and you click on the clock in the tray. It >looses focus but it is still the top

are your sure?
isn't it so that the taskbar(window) is then on top
(and there is just no overlap)

just for rethinking

meikl ;-)
0
 
LVL 3

Expert Comment

by:raidos
ID: 6996452
meikl, the taskbar(window) is normally "Always on Top" unless somebody changed the setting.. =)

Also note that the Desktop(window) is normally always below "all" other windows even if it does have focus.

Regards
//raidos
0
 
LVL 3

Accepted Solution

by:
raidos earned 75 total points
ID: 6996468
I would Advise you too check the Win32 API for GetTopWindow and GetNextWindow, in those lie the answers you seek i think.

//raidos
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 4

Assisted Solution

by:nestorua
nestorua earned 75 total points
ID: 6997031
HI,
If you want to know the Handle of the Top Window
(in Z-order) then use GetTopWindow() function.
But it is not the same as Focused Window.
So you must tell more fully what you mean when say "the top".
Sincerely,
Nestorua.
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005252
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between raido and netorua

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Paul (pnh73)
EE Cleanup Volunteer
0
 
LVL 1

Expert Comment

by:pnh73
ID: 9005303
[ Sorry I missed out all my s's in that last post... It should be "Split between raidos and nestorua" ]

Paul (pnh73)
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

885 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