[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

Windows XP taskbar grouping

Asked by soulaco in Microsoft Visual C++, Windows XP Operating System, Windows ATL / WTL / COM Programming

Tags: Taskbar, C#, C++, Windows, .NET, PInvoke, COM, Win32 API

How can you go about adding different program windows to an existing taskbar group tab on the Windows taskbar?

I figured out how to use the ITaskbarList2 interface and am able to add/remove tabs on the Windows taskbar. However, what I need to do is to be able to add windows to that new tab based on certain criteria. I, also, downloaded a program that allows you to add any program window to any taskbar tab, giving the user power over the taskbar grouping. That's what I need to be able to do programatically.

The issue I am trying to solve is...
At work, the traders use a program that spawns different child processes for their portfolios and other stuff. Each window's caption contains the type of window that it is. So, for instance, if a window is spawned for a portfolio view, the window caption would contain "Portfolio". If a window is spawned for their trade ledger, the window caption would contain "Ledger", etc.

The traders could have 20 or 30 windows opened at a time -- 10 ledger windows and 10 portfolio windows or whatever. The problem is that Windows XP will automatically group each window into a single tab on the taskbar (since they are all part of the same main program executable).

What I need is a way to search all the windows currently on the taskbar, find the windows that correspond to the main application and then group those windows according to their window captions. So, all the "ledger" windows would be grouped together in 1 tab and then all the "portfolio" windows would be grouped in another single tab, etc.

I know there's a way to do this, since the program I downloaded allows for this functionality manually. Since it's a program that is not mine, I can't reverse engineer it and see how it is achieving this functionality. But since it can do it -- the functionality is possible.

So, how can this be done? I don't care if the code is in C# or C++ (my guess is it would most likely be in C++). Does anybody know how to do this?

Thanks in advance.
[+][-]11/02/09 08:40 PM, ID: 25726094Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Microsoft Visual C++, Windows XP Operating System, Windows ATL / WTL / COM Programming
Tags: Taskbar, C#, C++, Windows, .NET, PInvoke, COM, Win32 API
Sign Up Now!
Solution Provided By: soulaco
Participating Experts: 2
Solution Grade: A
 
[+][-]11/02/09 03:22 PM, ID: 25724824Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/02/09 03:29 PM, ID: 25724874Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/02/09 03:35 PM, ID: 25724914Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/02/09 04:09 PM, ID: 25725095Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/02/09 04:27 PM, ID: 25725192Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625