Is there any method of retrieving only windows on the taskbar?
I want to make a custom “taskbar” that will group APPs in any order (not just in common order like default windows task grouping).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll have to use P/Invoke. Unfortunately, there is no standard way to determine whether a window would appear in the taskbar (or in alt+tab): you can only guess.
Here’s a pretty old example in VB: http://www.thescarms.com/VBasic/alttab.aspx
And in OnTopReplica, I implemented it in a similar manner. You can take a look at the source code (check out
OnTopReplica/WindowSeekers/TaskWindowSeeker.cs).