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.
Click on properties. c. Under taskbar and Taskbar buttons select “Never combine” is selected.
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.
Change how taskbar buttons group togetherPress and hold or right-click any empty space on the taskbar, then select Taskbar settings > Combine taskbar buttons.
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."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With