Classic Shell
http://www.classicshell.net/forum/

Change the color of the taskbar functionality
http://www.classicshell.net/forum/viewtopic.php?f=7&t=5582
Page 1 of 1

Author:  pattosk [ Mon Jan 11, 2016 8:13 am ]
Post subject:  Change the color of the taskbar functionality

Hello,

I'm really happy that i've found this tools because I did not know how to change the color of the taskbar. Your tool finally works but the problem is that i don't want to replace the start menu. I want to only change the color of the taskbar and set it to opaque. I've also asked a question on Stackoverflow: http://stackoverflow.com/questions/3469 ... 0/34722807

Can you help me only with this functionality? Currently I'm able to disable the transparency by finding the taskbar's hWnd (FindWindow("Shell_TrayWnd", null);) and setting the transparency by DWM API function DwmEnableBlurBehindWindow but I don't know how to change the color :(

I'll make a donation.

P.

Author:  Ivo [ Mon Jan 11, 2016 9:24 am ]
Post subject:  Re: Change the color of the taskbar functionality

The taskbar color and transparency is set by using the undocumented function SetWindowCompositionAttribute in user32.dll.

Author:  pattosk [ Wed Jan 13, 2016 11:45 am ]
Post subject:  Re: Change the color of the taskbar functionality

Many thanks for your answer. I have tried to achive it according to this tutorial: http://withinrafael.com/adding-the-aero ... s-10-apps/

I replaced
Code:
var windowHelper = new WindowInteropHelper(this);
to the taskbar hwnd
Code:
IntPtr hWndTray = FindWindow("Shell_TrayWnd", null);
and the SetWindowCompositionAttribute function:
Code:
SetWindowCompositionAttribute(hWndTray, ref data);


It works but when I open the default windows startmenu or startscreen (click to the startbutton) then the changes will lost.

I don't know how to persist the changes :-/

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/