Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

control windows 7 taskbar grouping for my application

My program needs to open a series of information windows when requested by a user, and would like to implement some kind of custom grouping on the windows 7 taskbar.

Desired functionality: All of my information windows should be grouped together (if grouping is enabled on the users system, that is) but my main window should NOT be grouped with the information windows.

I can not spawn a new process for my information windows.

My thought process is that there could be a way to modify the window handle of the information window somehow to get the taskbar to group it separately but I honestly don't even know where to start with this.

EDIT

Ive found some new information. I may be able to do something with SHGetPropertyStoreForWindow as stated here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx#where

...As a property of any of the application's running windows. This can be set in one of two ways: If different windows owned by one process require different AppUserModelIDs to control taskbar grouping, use SHGetPropertyStoreForWindow to retrieve the window's property store and set the AppUserModelID as a window property.

like image 701
caesay Avatar asked Aug 03 '12 02:08

caesay


People also ask

How do I ungroup programs from the taskbar in Windows 7?

Click on properties. c. Under taskbar and Taskbar buttons select “Never combine” is selected.

How do I stop the taskbar from grouping?

In Windows 10, right-click or tap and hold on the taskbar. Select Taskbar settings to open the Settings menu. Next to Combine taskbar buttons, select the menu and choose Never.

How do I change the taskbar grouping?

Change how taskbar buttons group togetherPress and hold or right-click any empty space on the taskbar, then select Taskbar settings > Combine taskbar buttons.


1 Answers

Application User Model IDs says:

"If different windows owned by one process require different AppUserModelIDs to control taskbar grouping, use SHGetPropertyStoreForWindow to retrieve the window's property store and set the AppUserModelID as a window property."

like image 188
Harry Johnston Avatar answered Sep 30 '22 09:09

Harry Johnston